From ced58c3be3f1da8dcf70c3904e5fe4bdaabf0e3d Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 12 Mar 2006 14:49:30 +0000 Subject: Renamed to chanrec::modes Renamed IsCustomModeSet to IsModeSet GetModeParameter will now return the channel limit (as a string) for a request for mode 'l' and the channel key for a request for mode 'k'. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3692 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_redirect.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_redirect.cpp') diff --git a/src/modules/m_redirect.cpp b/src/modules/m_redirect.cpp index a91ddef7f..799eb25de 100644 --- a/src/modules/m_redirect.cpp +++ b/src/modules/m_redirect.cpp @@ -57,7 +57,7 @@ class ModuleRedirect : public Module if (c) { /* Fix by brain: Dont let a channel be linked to *itself* either */ - if ((c == target) || (c->IsCustomModeSet('L'))) + if ((c == target) || (c->IsModeSet('L'))) { WriteServ(user->fd,"690 %s :Circular redirection, mode +L to %s not allowed.",user->nick,params[0].c_str()); return 0; @@ -83,7 +83,7 @@ class ModuleRedirect : public Module { if (chan) { - if (chan->IsCustomModeSet('L')) + if (chan->IsModeSet('L')) { if (Srv->CountUsers(chan) >= chan->limit) { -- cgit v1.2.3