From ca62a55590837a391a2fbb78c98ecced2dece590 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 25 Jan 2004 19:42:04 +0000 Subject: 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 --- src/irc/core/modes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/irc/core/modes.c') diff --git a/src/irc/core/modes.c b/src/irc/core/modes.c index 96592178..8528da70 100644 --- a/src/irc/core/modes.c +++ b/src/irc/core/modes.c @@ -547,7 +547,7 @@ void channel_set_mode(IRC_SERVER_REC *server, const char *channel, } 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", 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); - if (HAS_MODE_ARG(chanrec->server, type, *curmode)) { + if (HAS_MODE_ARG(server, type, *curmode)) { char *arg; count++; -- cgit v1.2.3