summaryrefslogtreecommitdiff
path: root/src/modules/m_restrictchans.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-03-28 01:11:48 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-03-28 01:11:48 +0000
commit3156ab273687038ecae4004a524de4bb7bed3c03 (patch)
treebb0c5b79722ec3c358d13c5d6b6639e72d7df5c2 /src/modules/m_restrictchans.cpp
parentc0a87dd9fc50b12f4b80699e55040648a979fdb5 (diff)
Added a module at request of [ed] which stops anyone messaging all but opers
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@925 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_restrictchans.cpp')
-rw-r--r--src/modules/m_restrictchans.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_restrictchans.cpp b/src/modules/m_restrictchans.cpp
index b834140fe..caced3c56 100644
--- a/src/modules/m_restrictchans.cpp
+++ b/src/modules/m_restrictchans.cpp
@@ -39,7 +39,7 @@ class ModuleRestrictChans : public Module
// channel does not yet exist (record is null, about to be created IF we were to allow it)
if (!chan)
{
- WriteServ(user->fd,"530 %s %s :Only IRC operators may create new channels",user->nick, chan->name,chan->name);
+ WriteServ(user->fd,"530 %s %s :Only IRC operators may create new channels",user->nick,cname,cname);
return 1;
}
}