summaryrefslogtreecommitdiff
path: root/src/mode.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-02 14:03:28 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-02 14:03:28 +0000
commit4fb13263bfd2325184caf98f48163a9e63f755fa (patch)
tree08bbf49fab96e3cdbcebe63ee01acb445b00eb47 /src/mode.cpp
parent4102508f95a9c62cd92a361667b87e8bae16c474 (diff)
Added ability for ulined servers to set any arbitary channel mode (even from outside the channel)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2113 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/mode.cpp')
-rw-r--r--src/mode.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mode.cpp b/src/mode.cpp
index d1c63702f..e9b6861c0 100644
--- a/src/mode.cpp
+++ b/src/mode.cpp
@@ -1517,7 +1517,7 @@ void handle_mode(char **parameters, int pcnt, userrec *user)
}
}
- if ((Ptr) && (!has_channel(user,Ptr)))
+ if (((Ptr) && (!has_channel(user,Ptr))) && (!is_uline(user->server)))
{
WriteServ(user->fd,"442 %s %s :You're not on that channel!",user->nick, Ptr->name);
return;