From 78aeaeb1cbadf454903a8f430e0e0a30972a17fe Mon Sep 17 00:00:00 2001 From: Kevin Easton Date: Tue, 4 Nov 2014 10:05:58 +0000 Subject: [PATCH] Cleanups around WANT_CHAN_NICK. Remove unused function declaration, add SERVERREQ flag to CHANSERV command and remove IRCIIHELP command that no server has provided in a long time, as far as I can tell. git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@523 13b04d17-f746-0410-82c6-800466cd88b0 --- source/commands.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/source/commands.c b/source/commands.c index 2015ff7..caad6f3 100644 --- a/source/commands.c +++ b/source/commands.c @@ -204,10 +204,6 @@ BUILT_IN_COMMAND(os2submenu); BUILT_IN_COMMAND(pmcodepage); #endif -#ifdef WANT_CHAN_NICK_SERV -BUILT_IN_COMMAND(e_server); -#endif - #ifdef ALLOW_DETACH BUILT_IN_COMMAND(detachcmd); #endif @@ -277,7 +273,7 @@ IrcCommand irc_command[] = #endif { "CHANNEL", "JOIN", e_channel, SERVERREQ, "- Shows information on the channels, modes and server you are on" }, #ifdef WANT_CHAN_NICK_SERV - { "CHANSERV", "CHANSERV", send_comm, 0, NULL }, + { "CHANSERV", "CHANSERV", send_comm, SERVERREQ, NULL }, #endif { "CHANST", NULL, channel_stats, SERVERREQ, "%Y<%n-ALL%Y> %R[%Bchannel%R]%n\n- Shows statistics on current channel or %R[%Bchannel%R]%n" }, { "CHAT", "Chat", chat, SERVERREQ, "%Y<%nNick%Y>%n\n- Attempts to dcc chat nick" }, @@ -413,9 +409,6 @@ IrcCommand irc_command[] = { "INPUT", "Input", inputcmd, 0, scripting_command }, { "INPUT_CHAR", "Input_Char", inputcmd, 0, scripting_command }, { "INVITE", "INVITE", do_invite, SERVERREQ, "%Y<%Cnick%Y>%n %R[%Bchannel%R]%n\n- Invites %Y<%Cnick%Y>%n to current channel or %R[%Bchannel%R]%n" }, -#ifdef WANT_CHAN_NICK_SERV - { "IRCIIHELP", "IRCIIHELP", send_comm, SERVERREQ, NULL }, -#endif { "IRCHOST", "HOSTNAME", e_hostname, 0, "%Y<%nhostname%Y>%n\n- Shows list of possible hostnames with option to change it on virtual hosts" }, { "IRCNAME", NULL, realname_cmd, 0, NULL }, { "IRCUSER", NULL, set_username, 0, "\n- Changes your " },