1
0
mirror of https://github.com/irssi/irssi.git synced 2024-06-16 06:25:24 +00:00

/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
This commit is contained in:
Timo Sirainen 2000-04-28 09:02:44 +00:00 committed by cras
parent 280bdd6ee4
commit eea919678c
4 changed files with 3 additions and 4 deletions

View File

@ -353,7 +353,7 @@ static void event_sent_invite(const char *data, IRC_SERVER_REC *server)
g_return_if_fail(data != NULL);
params = event_get_params(data, 2, NULL, &nick, &channel);
params = event_get_params(data, 3, NULL, &nick, &channel);
printformat(server, NULL, MSGLEVEL_CRAP, IRCTXT_INVITING, nick, channel);
g_free(params);
}

View File

@ -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);

View File

@ -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"

View File

@ -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);