From 6ab1d0dffb8084bf6a2ad8a446a3836fa3760c8a Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 8 Aug 2006 14:17:35 +0000 Subject: WriteChannel* functions and ChanExceptSender* functions are now methods of chanrec. They probably should be renamed too eventually. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4788 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules.cpp | 33 --------------------------------- 1 file changed, 33 deletions(-) (limited to 'src/modules.cpp') diff --git a/src/modules.cpp b/src/modules.cpp index d012d2c71..1b00f3510 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -414,22 +414,6 @@ void Server::ChangeUserNick(userrec* user, const std::string &nickname) force_nickchange(user,nickname.c_str()); } -void Server::KickUser(userrec* source, userrec* target, chanrec* chan, const std::string &reason) -{ - if (source) - { - if (!chan->KickUser(source, target, reason.c_str())) - /* No users left? */ - delete chan; - } - else - { - if (!chan->ServerKickUser(target, reason.c_str(), true)) - /* No users left? */ - delete chan; - } -} - void Server::QuitUser(userrec* user, const std::string &reason) { kill_link(user,reason.c_str()); @@ -498,23 +482,6 @@ void Server::SendTo(userrec* Source, userrec* Dest, const std::string &s) } } -void Server::SendChannelServerNotice(const std::string &ServName, chanrec* Channel, const std::string &text) -{ - WriteChannelWithServ_NoFormat((char*)ServName.c_str(), Channel, text.c_str()); -} - -void Server::SendChannel(userrec* User, chanrec* Channel, const std::string &s, bool IncludeSender) -{ - if (IncludeSender) - { - WriteChannel_NoFormat(Channel,User,s.c_str()); - } - else - { - ChanExceptSender_NoFormat(Channel,User,0,s.c_str()); - } -} - bool Server::CommonChannels(userrec* u1, userrec* u2) { return (common_channels(u1,u2) != 0); -- cgit v1.3.1-10-gc9f91