From 5a51984db1796220d1dfcaf2797940b1efc100df Mon Sep 17 00:00:00 2001 From: Adam- Date: Thu, 11 Mar 2010 22:59:43 +0000 Subject: Added support for tracking permanent channels git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/stable@2807 5417fbe8-f217-4b02-8779-1006273d7864 --- src/channels.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/channels.c') diff --git a/src/channels.c b/src/channels.c index c7b96a860..aa7ed4712 100644 --- a/src/channels.c +++ b/src/channels.c @@ -52,6 +52,10 @@ void chan_deluser(User * user, Channel * c) anope_cmd_part(c->ci->bi->nick, c->name, NULL); } + /* Channel is permament and shouldn't be deleted */ + if (anope_get_permchan_mode() && c->mode & anope_get_permchan_mode()) + return; + if (!c->users) chan_delete(c); } -- cgit