diff options
author | Timo Sirainen <cras@irssi.org> | 2000-04-28 09:02:44 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-04-28 09:02:44 +0000 |
commit | eea919678ccc3bcea57911fa87e11b9a7298dfae (patch) | |
tree | 0a8d7f8d0aa59a50cd252bfd6d9cb86fcb9b07ca /src/irc/core | |
parent | 280bdd6ee48db5c7a7ef5122e5db168d2a90ab6c (diff) | |
download | irssi-eea919678ccc3bcea57911fa87e11b9a7298dfae.zip |
/ban and /invite crashed, /mode didn't work. ctcp.c doesn't need
irssi-version.h
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@194 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc/core')
-rw-r--r-- | src/irc/core/bans.c | 2 | ||||
-rw-r--r-- | src/irc/core/ctcp.c | 1 | ||||
-rw-r--r-- | src/irc/core/modes.c | 2 |
3 files changed, 2 insertions, 3 deletions
diff --git a/src/irc/core/bans.c b/src/irc/core/bans.c index c492d3da..962c3c8d 100644 --- a/src/irc/core/bans.c +++ b/src/irc/core/bans.c @@ -169,7 +169,7 @@ static void command_set_ban(const char *data, IRC_SERVER_REC *server, WI_IRC_REC if (server == NULL || !server->connected || !irc_server_check(server)) cmd_return_error(CMDERR_NOT_CONNECTED); - params = cmd_get_params(data, 2 | PARAM_FLAG_OPTCHAN | PARAM_FLAG_GETREST, + params = cmd_get_params(data, 3 | PARAM_FLAG_OPTCHAN | PARAM_FLAG_GETREST, item, &channel, &nicks); if (!ischannel(*channel)) cmd_param_error(CMDERR_NOT_JOINED); if (*nicks == '\0') cmd_param_error(CMDERR_NOT_ENOUGH_PARAMS); diff --git a/src/irc/core/ctcp.c b/src/irc/core/ctcp.c index 967c22a3..5265c2be 100644 --- a/src/irc/core/ctcp.c +++ b/src/irc/core/ctcp.c @@ -23,7 +23,6 @@ #include "levels.h" #include "special-vars.h" #include "settings.h" -#include "irssi-version.h" #include "irc.h" #include "irc-server.h" diff --git a/src/irc/core/modes.c b/src/irc/core/modes.c index b73d5eb8..9b5c8027 100644 --- a/src/irc/core/modes.c +++ b/src/irc/core/modes.c @@ -331,7 +331,7 @@ void channel_set_mode(IRC_SERVER_REC *server, const char *channel, const char *m g_return_if_fail(server != NULL); g_return_if_fail(channel != NULL); - g_return_if_fail(modestr != NULL); + g_return_if_fail(mode != NULL); tmode = g_string_new(NULL); targs = g_string_new(NULL); |