mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
crashfix when setting mode to channel you haven't joined
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3222 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
457d3cbc56
commit
ca62a55590
@ -547,7 +547,7 @@ void channel_set_mode(IRC_SERVER_REC *server, const char *channel,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (count == server->max_modes_in_cmd &&
|
if (count == server->max_modes_in_cmd &&
|
||||||
HAS_MODE_ARG(chanrec->server, type, *curmode)) {
|
HAS_MODE_ARG(server, type, *curmode)) {
|
||||||
irc_send_cmdv(server, "MODE %s %s%s",
|
irc_send_cmdv(server, "MODE %s %s%s",
|
||||||
channel, tmode->str, targs->str);
|
channel, tmode->str, targs->str);
|
||||||
|
|
||||||
@ -562,7 +562,7 @@ void channel_set_mode(IRC_SERVER_REC *server, const char *channel,
|
|||||||
}
|
}
|
||||||
g_string_append_c(tmode, *curmode);
|
g_string_append_c(tmode, *curmode);
|
||||||
|
|
||||||
if (HAS_MODE_ARG(chanrec->server, type, *curmode)) {
|
if (HAS_MODE_ARG(server, type, *curmode)) {
|
||||||
char *arg;
|
char *arg;
|
||||||
|
|
||||||
count++;
|
count++;
|
||||||
|
Loading…
Reference in New Issue
Block a user