summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-28 22:30:34 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-28 22:30:34 +0000
commit4158ee6882ad088cd9e63db22d8fad7a624b14e6 (patch)
treef080f6ba1445cebad67a64784e7641225c22ceef /src/modules
parentf45295b0ed1341b68cb82495ca5c4c566f368f79 (diff)
Added some extra debug
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2958 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_operchans.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_operchans.cpp b/src/modules/m_operchans.cpp
index c15cd2b58..1ec4b4fc7 100644
--- a/src/modules/m_operchans.cpp
+++ b/src/modules/m_operchans.cpp
@@ -49,8 +49,9 @@ class ModuleOperChans : public Module
{
chanrec* chan = (chanrec*)target;
- if ((Srv->IsUlined(user->nick)) || (Srv->IsUlined(user->server)) || (!strcmp(user->server,"")) || (strchr(user->modes,'o')))
+ if ((Srv->IsUlined(user->nick)) || (Srv->IsUlined(user->server)) || (!*user->server) || (strchr(user->modes,'o')))
{
+ log(DEBUG,"Allowing mode +O");
return 1;
}
else