Merge pull request #1457 from arodland/forgiving-ctcp
Be forgiving of a missing ending CTCP delimiter in a truncated message
This commit is contained in:
parent
7121bb6e82
commit
076b2c1c73
@ -1259,10 +1259,13 @@ process_named_msg (session *sess, char *type, char *word[], char *word_eol[],
|
||||
text++;
|
||||
}
|
||||
len = strlen (text);
|
||||
if (text[0] == 1 && text[len - 1] == 1) /* ctcp */
|
||||
if (text[0] == 1) /* ctcp */
|
||||
{
|
||||
char *new_pdibuf = NULL;
|
||||
text[len - 1] = 0;
|
||||
if (text[len - 1] == 1)
|
||||
{
|
||||
text[len - 1] = 0;
|
||||
}
|
||||
text++;
|
||||
if (g_ascii_strncasecmp (text, "ACTION", 6) != 0)
|
||||
flood_check (nick, ip, serv, sess, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user