summaryrefslogtreecommitdiff
path: root/src/modules.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules.cpp')
-rw-r--r--src/modules.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules.cpp b/src/modules.cpp
index 5ac49e75a..2cfb586ca 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -408,15 +408,15 @@ 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)
+void Server::KickUser(userrec* source, userrec* target, chanrec* chan, std::string reason)
{
if (source)
{
- kick_channel(source,target,chan,reason);
+ kick_channel(source,target,chan,(char*)reason.c_str());
}
else
{
- server_kick_channel(target,chan,reason,true);
+ server_kick_channel(target,chan,(char*)reason.c_str(),true);
}
}