mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-17 11:10:18 +00:00
Remove : from various trailing parameters (#2301)
Partial fix for #2271 This isn't an exhaustive list, but it's everything I could find. The bug still exists in the parser though, this is just a workaround for the moment
This commit is contained in:
@@ -735,6 +735,8 @@ handle_mode (server * serv, char *word[], char *word_eol[],
|
||||
if (!(*word[i + offset]))
|
||||
break;
|
||||
num_args++;
|
||||
if (word[i + offset][0] == ':')
|
||||
break;
|
||||
}
|
||||
|
||||
/* count the number of modes (without the -/+ chars */
|
||||
@@ -765,7 +767,7 @@ handle_mode (server * serv, char *word[], char *word_eol[],
|
||||
if ((all_modes_have_args || mode_has_arg (serv, sign, *modes)) && arg < (num_args + 1))
|
||||
{
|
||||
arg++;
|
||||
argstr = word[arg + offset];
|
||||
argstr = STRIP_COLON(word, word_eol, arg+offset);
|
||||
}
|
||||
handle_single_mode (&mr, sign, *modes, nick, chan,
|
||||
argstr, numeric_324 || prefs.hex_irc_raw_modes,
|
||||
|
||||
Reference in New Issue
Block a user