- Fix segfault by checking if RESTRICT_USERMODES is NULL in the code for bug .

This commit is contained in:
binki 2010-08-25 04:36:28 +00:00
parent c144008217
commit 9643607334
2 changed files with 3 additions and 0 deletions

View file

@ -2120,3 +2120,5 @@
- Remove snomasks upon deopering when it seems like the user shouldn't
have snomasks. (#3329)
- Fix /msg IRC WHOIS response for persons with secure connections. (#3947)
- Fix segfault by checking if RESTRICT_USERMODES is NULL in the code
for bug #3329.

View file

@ -501,6 +501,7 @@ int i;
* See #3329
*/
if (sptr->umodes & UMODE_SERVNOTICE
&& RESTRICT_USERMODES
&& strchr(RESTRICT_USERMODES, 's')
&& !(CONN_MODES & UMODE_SERVNOTICE))
{