summaryrefslogtreecommitdiff
path: root/src/irc/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/irc/core')
-rw-r--r--src/irc/core/bans.c2
-rw-r--r--src/irc/core/ctcp.c1
-rw-r--r--src/irc/core/modes.c2
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);