From 2708eea5d13c249143b83fbaa8b552992f0ac8b6 Mon Sep 17 00:00:00 2001 From: Adam- Date: Mon, 4 Jan 2010 05:45:58 +0000 Subject: Removed NICKMAX and CHANMAX, replaced user->nick, c->name, and ci->name with std::string git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2732 5417fbe8-f217-4b02-8779-1006273d7864 --- src/core/os_session.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/os_session.c') diff --git a/src/core/os_session.c b/src/core/os_session.c index 7c515cd0b..db7579ee1 100644 --- a/src/core/os_session.c +++ b/src/core/os_session.c @@ -167,7 +167,7 @@ static int exception_view(User *u, const int index, int *sent_header) expire_left(u->nc, expirebuf, sizeof(expirebuf), exceptions[index].expires); - notice_lang(Config.s_OperServ, u, OPER_EXCEPTION_VIEW_FORMAT, index + 1, exceptions[index].mask, *exceptions[index].who ? exceptions[index].who : "", timebuf, expirebuf, exceptions[index].limit, exceptions[index].reason); + notice_lang(Config.s_OperServ, u, OPER_EXCEPTION_VIEW_FORMAT, index + 1, exceptions[index].mask, !exceptions[index].who.empty() ? exceptions[index].who.c_str() : "", timebuf, expirebuf, exceptions[index].limit, exceptions[index].reason); return 1; } @@ -243,7 +243,7 @@ class CommandOSException : public Command return MOD_CONT; } - x = exception_add(u, mask, limit, reason, u->nick, expires); + x = exception_add(u, mask, limit, reason, u->nick.c_str(), expires); if (x == 1) notice_lang(Config.s_OperServ, u, OPER_EXCEPTION_ADDED, mask, limit); -- cgit