summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-11-12 17:51:29 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-11-12 17:51:29 +0000
commitad89443bc7c0e6fc4a225fa3624da4a22ace3a5a (patch)
tree2f9a99bead530bbd502f279d851201b4e9b95fc7 /src
parentee3bdd6e5d886a558285157de93d2cef312ee74a (diff)
Thanks for the pointer jilles ;)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5720 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/channels.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/channels.cpp b/src/channels.cpp
index bf6eccdb6..948b49a0b 100644
--- a/src/channels.cpp
+++ b/src/channels.cpp
@@ -226,7 +226,11 @@ chanrec* chanrec::JoinUser(InspIRCd* Instance, userrec *user, const char* cn, bo
Instance->chanlist[cname] = Ptr;
strlcpy(Ptr->name, cname,CHANMAX);
- Ptr->modes[CM_TOPICLOCK] = Ptr->modes[CM_NOEXTERNAL] = 1;
+
+ /* As spotted by jilles, dont bother to set this on remote users */
+ if (IS_LOCAL(user))
+ Ptr->modes[CM_TOPICLOCK] = Ptr->modes[CM_NOEXTERNAL] = 1;
+
Ptr->created = Instance->Time();
*Ptr->topic = 0;
*Ptr->setby = 0;