diff options
| author | 2006-01-22 19:33:53 +0000 | |
|---|---|---|
| committer | 2006-01-22 19:33:53 +0000 | |
| commit | 715dab175374ee11609f013b103c1b0f579192bc (patch) | |
| tree | 95ac4bb24a6102899804486ba92e9ae8b6be3781 /src/modules.cpp | |
| parent | Added facility for servers to send KICK message (ew, i hate this crap) (diff) | |
| download | inspircd++-715dab175374ee11609f013b103c1b0f579192bc.tar.gz inspircd++-715dab175374ee11609f013b103c1b0f579192bc.tar.bz2 inspircd++-715dab175374ee11609f013b103c1b0f579192bc.zip | |
Fixes to make server kicks work
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2831 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules.cpp')
| -rw-r--r-- | src/modules.cpp | 6 |
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); } } |
