Commit 3fa444249e5127e6f4282c1e4804d4ec1a4283d0

Authored by Matti Virkkunen
1 parent 8c6809f5

Limit LINE commands to the correct prpl.

Showing 1 changed file with 4 additions and 4 deletions
libpurple/purpleline_cmds.cpp
... ... @@ -5,7 +5,7 @@ void PurpleLine::register_commands() {
5 5 "sticker",
6 6 "w",
7 7 PURPLE_CMD_P_PRPL,
8   - (PurpleCmdFlag)(PURPLE_CMD_FLAG_IM | PURPLE_CMD_FLAG_CHAT),
  8 + (PurpleCmdFlag)(PURPLE_CMD_FLAG_PRPL_ONLY | PURPLE_CMD_FLAG_IM | PURPLE_CMD_FLAG_CHAT),
9 9 LINE_PRPL_ID,
10 10 WRAPPER(PurpleLine::cmd_sticker),
11 11 "Sends a sticker. The argument should be of the format VER/PKGID/ID.",
... ... @@ -15,8 +15,8 @@ void PurpleLine::register_commands() {
15 15 "history",
16 16 "w",
17 17 PURPLE_CMD_P_PRPL,
18   - (PurpleCmdFlag)
19   - (PURPLE_CMD_FLAG_IM | PURPLE_CMD_FLAG_CHAT | PURPLE_CMD_FLAG_ALLOW_WRONG_ARGS),
  18 + (PurpleCmdFlag)(PURPLE_CMD_FLAG_PRPL_ONLY | PURPLE_CMD_FLAG_IM | PURPLE_CMD_FLAG_CHAT
  19 + | PURPLE_CMD_FLAG_ALLOW_WRONG_ARGS),
20 20 LINE_PRPL_ID,
21 21 WRAPPER(PurpleLine::cmd_history),
22 22 "Shows more chat history. Optional argument specifies number of messages to show.",
... ... @@ -26,7 +26,7 @@ void PurpleLine::register_commands() {
26 26 "open",
27 27 "w",
28 28 PURPLE_CMD_P_PRPL,
29   - (PurpleCmdFlag)(PURPLE_CMD_FLAG_IM | PURPLE_CMD_FLAG_CHAT),
  29 + (PurpleCmdFlag)(PURPLE_CMD_FLAG_PRPL_ONLY | PURPLE_CMD_FLAG_IM | PURPLE_CMD_FLAG_CHAT),
30 30 LINE_PRPL_ID,
31 31 WRAPPER(PurpleLine::cmd_open),
32 32 "Opens an attachment (image, audio) by number.",
... ...