Add SERVERREQ flag to all send_2comm commands.
send_2comm() always sends the command on to the server, so it always requires a server connection. git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@526 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
@@ -502,7 +502,7 @@ IrcCommand irc_command[] =
|
||||
#endif
|
||||
{ "P", "Ping", pingcmd, 0, "%Y<%nnick%Y>%n\n- Pings %Y<%nnick%Y>" },
|
||||
{ "PARSEKEY", NULL, parsekeycmd, 0, scripting_command },
|
||||
{ "PART", "PART", send_2comm, 0, "- Leaves %Y<%nchannel%Y>%n" },
|
||||
{ "PART", "PART", send_2comm, SERVERREQ, "- Leaves %Y<%nchannel%Y>%n" },
|
||||
{ "PARTALL", "PARTALL", do_getout, 0, "- Leaves all channels" },
|
||||
{ "PASTE", NULL, pastecmd, 0, NULL },
|
||||
{ "PAUSE", NULL, e_pause, 0, scripting_command },
|
||||
@@ -583,7 +583,7 @@ IrcCommand irc_command[] =
|
||||
{ "RETURN", NULL, returncmd, 0, NULL },
|
||||
{ "REVISIONS", NULL, show_revisions, 0, "- Shows CVS revisions of source files." },
|
||||
/* nuxx requested this command */
|
||||
{ "RMAP", "MAP", send_2comm, 0, "- Sends out a /map command to the server%n" },
|
||||
{ "RMAP", "MAP", send_2comm, SERVERREQ, "- Sends out a /map command to the server%n" },
|
||||
{ "RPING", "RPING", send_comm, SERVERREQ, NULL },
|
||||
{ "SAVE", "SaveAll", savelists, 0, "- Saves ~/.BitchX/BitchX.sav" },
|
||||
{ "SAVEIRC", NULL, save_settings, 0, "- Saves ~/.bitchxrc" },
|
||||
@@ -617,8 +617,8 @@ IrcCommand irc_command[] =
|
||||
{ "SLEEP", NULL, sleepcmd, 0, scripting_command },
|
||||
{ "SPAM", NULL, spam, 0, NULL },
|
||||
{ "SPING", "Sping", sping, 0, "%Y<%nserver|.|-clear%Y>%n\n- Checks how lagged you are to %Y<%nserver%Y>%n" },
|
||||
{ "SQUERY", "SQUERY", send_2comm, 0, "%Y<%nservice%Y> <%ntext%Y>%n\n - Sends %Y<%ntext%Y>%n to %Y<%nservice%Y>%n" },
|
||||
{ "SQUIT", "SQUIT", send_2comm, 0, "%Y<%nserver1%Y>%n %R[%nserver2%R]%n\n%Y*%n Requires irc operator status\n- Disconnects %Y<%nserver1%Y>%n from current server or %R[%nserver2%R]%n" },
|
||||
{ "SQUERY", "SQUERY", send_2comm, SERVERREQ, "%Y<%nservice%Y> <%ntext%Y>%n\n - Sends %Y<%ntext%Y>%n to %Y<%nservice%Y>%n" },
|
||||
{ "SQUIT", "SQUIT", send_2comm, SERVERREQ, "%Y<%nserver1%Y>%n %R[%nserver2%R]%n\n%Y*%n Requires irc operator status\n- Disconnects %Y<%nserver1%Y>%n from current server or %R[%nserver2%R]%n" },
|
||||
{ "STACK", NULL, stackcmd, 0, scripting_command },
|
||||
{ "STATS", "STATS", do_stats, 0, NULL },
|
||||
{ "STUB", "Stub", stubcmd, 0, "(alias|assign) <name> <file> [<file ...]" },
|
||||
@@ -702,7 +702,7 @@ IrcCommand irc_command[] =
|
||||
{ "W", "W", whocmd, 0, NULL },
|
||||
{ "WAIT", NULL, waitcmd, 0, scripting_command },
|
||||
{ "WALL", "WALL", ChanWallOp, 0, NULL },
|
||||
{ "WALLCHOPS", "WALLCHOPS", send_2comm, 0, NULL },
|
||||
{ "WALLCHOPS", "WALLCHOPS", send_2comm, SERVERREQ, NULL },
|
||||
{ "WALLMSG", NULL, ChanWallOp, 0, NULL },
|
||||
{ "WALLOPS", "WALLOPS", e_wall, 0, NULL },
|
||||
{ "WATCH", "WATCH", watchcmd, 0, NULL },
|
||||
|
||||
Reference in New Issue
Block a user