mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
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
This commit is contained in:
parent
8458c2ee15
commit
7365afddea
@ -311,7 +311,7 @@ void channel_set_singlemode(IRC_SERVER_REC *server, const char *channel, const c
|
|||||||
|
|
||||||
g_string_sprintfa(str, " %s", *nick);
|
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 */
|
/* max. modes / command reached, send to server */
|
||||||
irc_send_cmd(server, str->str);
|
irc_send_cmd(server, str->str);
|
||||||
num = 0;
|
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);
|
curmode = cmd_get_param(&modestr);
|
||||||
for (; *curmode != '\0'; curmode++) {
|
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);
|
irc_send_cmdv(server, "MODE %s %s%s", channel, tmode->str, targs->str);
|
||||||
|
|
||||||
count = 0;
|
count = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user