summaryrefslogtreecommitdiff
path: root/src/irc/core/modes.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2004-01-25 19:42:04 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2004-01-25 19:42:04 +0000
commitca62a55590837a391a2fbb78c98ecced2dece590 (patch)
treef7beaeba2d61110a188a4f2a61d187678f60d757 /src/irc/core/modes.c
parent457d3cbc56808c98a1c67d4175785cb12b9106a0 (diff)
downloadirssi-ca62a55590837a391a2fbb78c98ecced2dece590.zip
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
Diffstat (limited to 'src/irc/core/modes.c')
-rw-r--r--src/irc/core/modes.c4
1 files changed, 2 insertions, 2 deletions
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++;