summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-25 00:07:48 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-25 00:07:48 +0000
commit3d3df9c48d576f6d6ac878a2abe3ab694fa24de6 (patch)
tree06a20070041026d22ab73f367f8fb8153bd34fa1 /src/modules
parent3e5a6e406352156f61759c54a29f169c3a639ca5 (diff)
Changed so that when the first in the channel gets founder, the +q mode change is sent to keep the client synched (requested by katsklaw)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1510 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_chanprotect.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/modules/m_chanprotect.cpp b/src/modules/m_chanprotect.cpp
index 7155e1355..8cf91d45c 100644
--- a/src/modules/m_chanprotect.cpp
+++ b/src/modules/m_chanprotect.cpp
@@ -107,6 +107,11 @@ class ModuleChanProtect : public Module
// this way is best as it adds data thats accessible to other modules
// (so long as you document your code properly) without breaking anything
// because its encapsulated neatly in a map.
+
+ // Change requested by katsklaw... when the first in is set to get founder,
+ // to make it clearer that +q has been given, send that one user the +q notice
+ // so that their client's syncronization and their sanity are left intact.
+ WriteServ(user->fd,"MODE %s +q %s",channel->name,user->nick);
if (user->Extend("cm_founder_"+std::string(channel->name),fakevalue))
{
Srv->Log(DEBUG,"Marked user "+std::string(user->nick)+" as founder for "+std::string(channel->name));