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:
@@ -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;
|
||||
|
||||
+2
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user