From ad89443bc7c0e6fc4a225fa3624da4a22ace3a5a Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 12 Nov 2006 17:51:29 +0000 Subject: Thanks for the pointer jilles ;) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5720 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/channels.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3