1
0
mirror of https://github.com/anope/anope.git synced 2026-06-29 06:56:39 +02:00

Make src/sessions.c and src/users.c compile.

Core now compiles successfully, modules do not.


git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1379 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
Robin Burchell w00t@inspircd.org
2008-10-02 23:26:24 +00:00
parent 0b4b8d4d54
commit 9c59d8d8b4
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -223,9 +223,9 @@ int add_session(const char *nick, const char *host, char *hostip)
if (sessionlimit != 0 && session->count >= sessionlimit) {
if (SessionLimitExceeded)
ircdproto->SendMessage(s_OperServ, nick, SessionLimitExceeded, host);
ircdproto->SendMessage(findbot(s_OperServ), nick, SessionLimitExceeded, host);
if (SessionLimitDetailsLoc)
ircdproto->SendMessage(s_OperServ, nick, "%s", SessionLimitDetailsLoc);
ircdproto->SendMessage(findbot(s_OperServ), nick, "%s", SessionLimitDetailsLoc);
/* We don't use kill_user() because a user stucture has not yet
* been created. Simply kill the user. -TheShadow
+2 -2
View File
@@ -297,11 +297,11 @@ void User::SendMessage(const char *source, const std::string &msg)
if (UsePrivmsg &&
((!this->na && NSDefFlags & NI_MSG) || (this->na && this->na->nc->flags & NI_MSG)))
{
ircdproto->SendPrivmsg(source, this->nick, msg.c_str());
ircdproto->SendPrivmsg(findbot(source), this->nick, msg.c_str());
}
else
{
ircdproto->SendNotice(source, this->nick, msg.c_str());
ircdproto->SendNotice(findbot(source), this->nick, msg.c_str());
}
}