diff options
author | Timo Sirainen <cras@irssi.org> | 2000-06-12 23:33:35 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-06-12 23:33:35 +0000 |
commit | 7365afddea55dcf265389d2ea1f15286261de4a3 (patch) | |
tree | d2d9cddc6dedc4a65f40c1c3a9bbad2cb1a0b508 /src | |
parent | 8458c2ee153b41edbb1a1214168373366c84e794 (diff) | |
download | irssi-7365afddea55dcf265389d2ea1f15286261de4a3.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/irc/core/modes.c | 4 |
1 files 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; |