diff options
Diffstat (limited to 'src/modules.cpp')
-rw-r--r-- | src/modules.cpp | 12 |
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()); |