From 7365afddea55dcf265389d2ea1f15286261de4a3 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 12 Jun 2000 23:33:35 +0000 Subject: [PATCH] Max. mode parameter count was taken from wrong place. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@332 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/irc/core/modes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/irc/core/modes.c b/src/irc/core/modes.c index 88d840b4..715ad040 100644 --- a/src/irc/core/modes.c +++ b/src/irc/core/modes.c @@ -311,7 +311,7 @@ void channel_set_singlemode(IRC_SERVER_REC *server, const char *channel, const c g_string_sprintfa(str, " %s", *nick); - if (++num == server->connrec->max_modes) { + if (++num == server->max_modes_in_cmd) { /* max. modes / command reached, send to server */ irc_send_cmd(server, str->str); num = 0; @@ -341,7 +341,7 @@ void channel_set_mode(IRC_SERVER_REC *server, const char *channel, const char *m curmode = cmd_get_param(&modestr); for (; *curmode != '\0'; curmode++) { - if (count == server->connrec->max_modes && HAS_MODE_ARG(*curmode)) { + if (count == server->max_modes_in_cmd && HAS_MODE_ARG(*curmode)) { irc_send_cmdv(server, "MODE %s %s%s", channel, tmode->str, targs->str); count = 0;