mirror of
https://github.com/anope/anope.git
synced 2026-07-04 03:43:13 +02:00
Fixed crash when InspIRCd sends user MODE changes
for users that don't "exist" (probably us)
This commit is contained in:
@@ -1514,7 +1514,7 @@ int anope_event_mode(char *source, int ac, char **av)
|
||||
/* If it's still null, drop it like fire.
|
||||
* most likely situation was that server introduced a nick
|
||||
* which we subsequently akilled */
|
||||
if (u == NULL)
|
||||
if (u == NULL || u2 == NULL)
|
||||
return MOD_CONT;
|
||||
|
||||
av[0] = u2->nick;
|
||||
|
||||
@@ -1520,7 +1520,7 @@ int anope_event_mode(char *source, int ac, char **av)
|
||||
/* If it's still null, drop it like fire.
|
||||
* most likely situation was that server introduced a nick
|
||||
* which we subsequently akilled */
|
||||
if (u == NULL)
|
||||
if (u == NULL || u2 == NULL)
|
||||
return MOD_CONT;
|
||||
|
||||
av[0] = u2->nick;
|
||||
|
||||
Reference in New Issue
Block a user