summaryrefslogtreecommitdiff
path: root/src/modules.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-22 19:23:20 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-22 19:23:20 +0000
commit93e3cda102be0870171ecd9ad0d6507566c7ffd1 (patch)
tree5fda1d70ee8bad97c59c9dd16780e1c54e52c08d /src/modules.cpp
parente16c16e7a0cc59d85373f794d9179befe5a7a1f7 (diff)
Added facility for servers to send KICK message (ew, i hate this crap)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2830 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules.cpp')
-rw-r--r--src/modules.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/modules.cpp b/src/modules.cpp
index 390efe5bf..5ac49e75a 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -408,6 +408,18 @@ void Server::ChangeUserNick(userrec* user, std::string nickname)
force_nickchange(user,nickname.c_str());
}
+virtual void KickUser(userrec* source, userrec* target, chanrec* chan, std::string reason)
+{
+ if (source)
+ {
+ kick_channel(source,target,chan,reason);
+ }
+ else
+ {
+ server_kick_channel(target,chan,reason,true);
+ }
+}
+
void Server::QuitUser(userrec* user, std::string reason)
{
kill_link(user,reason.c_str());