Uses more QDEL_NULLs

This commit is contained in:
Sam
2017-06-15 00:49:00 +01:00
parent 5131f91725
commit d0dde4f3d7
34 changed files with 65 additions and 118 deletions

View File

@@ -213,8 +213,7 @@
if("PRG_deletechannel")
. = 1
if(channel && ((channel.operator == src) || netadmin_mode))
qdel(channel)
channel = null
QDEL_NULL(channel)
if("PRG_setpassword")
. = 1
if(!channel || ((channel.operator != src) && !netadmin_mode))
@@ -228,4 +227,4 @@
if(newpassword == "nopassword")
channel.password = ""
else
channel.password = newpassword
channel.password = newpassword