From 07c2291966117e490a9aa28ed1be73631b4f9313 Mon Sep 17 00:00:00 2001 From: Kevin Easton Date: Tue, 4 Nov 2014 10:54:23 +0000 Subject: [PATCH] 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 --- source/commands.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/commands.c b/source/commands.c index 8083cf1..e24e3b5 100644 --- a/source/commands.c +++ b/source/commands.c @@ -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) [