mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
/PART #channel1,#channel2 didn't work
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@644 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
e75bea0afa
commit
1b5099752a
@ -336,7 +336,6 @@ static void cmd_join(const char *data, IRC_SERVER_REC *server)
|
|||||||
/* SYNTAX: PART [<channels>] [<message>] */
|
/* SYNTAX: PART [<channels>] [<message>] */
|
||||||
static void cmd_part(const char *data, IRC_SERVER_REC *server, WI_ITEM_REC *item)
|
static void cmd_part(const char *data, IRC_SERVER_REC *server, WI_ITEM_REC *item)
|
||||||
{
|
{
|
||||||
IRC_CHANNEL_REC *chanrec;
|
|
||||||
char *channame, *msg;
|
char *channame, *msg;
|
||||||
void *free_arg;
|
void *free_arg;
|
||||||
|
|
||||||
@ -348,9 +347,6 @@ static void cmd_part(const char *data, IRC_SERVER_REC *server, WI_ITEM_REC *item
|
|||||||
return;
|
return;
|
||||||
if (*channame == '\0') cmd_param_error(CMDERR_NOT_ENOUGH_PARAMS);
|
if (*channame == '\0') cmd_param_error(CMDERR_NOT_ENOUGH_PARAMS);
|
||||||
|
|
||||||
chanrec = irc_channel_find(server, channame);
|
|
||||||
if (chanrec == NULL) cmd_param_error(CMDERR_CHAN_NOT_FOUND);
|
|
||||||
|
|
||||||
irc_send_cmdv(server, *msg == '\0' ? "PART %s" : "PART %s :%s",
|
irc_send_cmdv(server, *msg == '\0' ? "PART %s" : "PART %s :%s",
|
||||||
channame, msg);
|
channame, msg);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user