summaryrefslogtreecommitdiff
path: root/src/modules.cpp
diff options
context:
space:
mode:
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());