mirror of
https://github.com/pissnet/pissircd.git
synced 2025-07-30 23:12:25 +01:00
- Fix segfault by checking if RESTRICT_USERMODES is NULL in the code for bug #3329.
This commit is contained in:
parent
c144008217
commit
9643607334
2 changed files with 3 additions and 0 deletions
2
Changes
2
Changes
|
@ -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.
|
||||
|
|
|
@ -501,6 +501,7 @@ int i;
|
|||
* See #3329
|
||||
*/
|
||||
if (sptr->umodes & UMODE_SERVNOTICE
|
||||
&& RESTRICT_USERMODES
|
||||
&& strchr(RESTRICT_USERMODES, 's')
|
||||
&& !(CONN_MODES & UMODE_SERVNOTICE))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue