1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 19:56:38 +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;
+2 -1
View File
@@ -8,9 +8,10 @@ VERSION_MAJOR="1"
VERSION_MINOR="8"
VERSION_PATCH="8"
VERSION_EXTRA="-git"
VERSION_BUILD="3095"
VERSION_BUILD="3096"
# Changes since 1.8.7 Release
#Revision 3096 - Fixed crash when InspIRCd sends user MODE changes for users that don't exist
#Revision 3095 - Fixed crash with cs_enforce and registered empty permanent channels
#Revision 3094 - Bug #1380 - Do not allow akill masks to end in @
#Revision 3093 - Fixed several grammar errors in docs/ (patch provided by Simba)