[srvx-commits] CVS: services/src chanserv.c,1.161.2.79,1.161.2.80
Brought to you by:
entrope
From: Adrian D. <sai...@us...> - 2001-08-31 17:18:57
|
Update of /cvsroot/srvx/services/src In directory usw-pr-cvs1:/tmp/cvs-serv28948/src Modified Files: Tag: rel-1_0 chanserv.c Log Message: Prevent crash when unregistering an empty chan Index: chanserv.c =================================================================== RCS file: /cvsroot/srvx/services/src/chanserv.c,v retrieving revision 1.161.2.79 retrieving revision 1.161.2.80 diff -C2 -r1.161.2.79 -r1.161.2.80 *** chanserv.c 2001/08/21 04:49:19 1.161.2.79 --- chanserv.c 2001/08/31 16:46:01 1.161.2.80 *************** *** 1675,1683 **** } if(channel) /* not suspended */ { DelChannelUser(chanserv, channel, reason, 0); } - unregister_channel(channel->channel_info); chanserv_notice(user, CSMSG_UNREG_SUCCESS, name); --- 1675,1683 ---- } + unregister_channel(channel->channel_info); if(channel) /* not suspended */ { DelChannelUser(chanserv, channel, reason, 0); } chanserv_notice(user, CSMSG_UNREG_SUCCESS, name); |