From 9c59d8d8b491a08bbcf4564b9437da07c40c2dfa Mon Sep 17 00:00:00 2001 From: "Robin Burchell w00t@inspircd.org" Date: Thu, 2 Oct 2008 23:26:24 +0000 Subject: [PATCH] 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 --- src/sessions.c | 4 ++-- src/users.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/sessions.c b/src/sessions.c index 765333cc4..b0fee9b0c 100644 --- a/src/sessions.c +++ b/src/sessions.c @@ -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 diff --git a/src/users.c b/src/users.c index cccf8df54..64e361f98 100644 --- a/src/users.c +++ b/src/users.c @@ -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()); } }