1
0
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:
Adam
2012-07-30 02:25:46 -04:00
parent 670e73d69d
commit d0e5a18848
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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;