From a5ddbb0217af75606c7c694e54d771a8bde8d834 Mon Sep 17 00:00:00 2001 From: Adam- Date: Thu, 27 May 2010 01:51:14 +0000 Subject: Fixed some compiler warnings found on 64bit systems git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2989 5417fbe8-f217-4b02-8779-1006273d7864 --- src/core/cs_info.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/core') diff --git a/src/core/cs_info.c b/src/core/cs_info.c index 1322b8736..2a8c0b905 100644 --- a/src/core/cs_info.c +++ b/src/core/cs_info.c @@ -47,7 +47,6 @@ class CommandCSInfo : public Command bool has_auspex = u->Account() && u->Account()->HasPriv("chanserv/auspex"); int show_all = 0; time_t expt; - ChannelMode *cm; ci = cs_findchan(chan); @@ -82,11 +81,7 @@ class CommandCSInfo : public Command strftime_lang(buf, sizeof(buf), u, STRFTIME_DATE_TIME_FORMAT, tm); notice_lang(Config.s_ChanServ, u, CHAN_INFO_LAST_USED, buf); - cm = ModeManager::FindChannelModeByName(CMODE_SECRET); - // XXX: yuck. - if (ci->last_topic && - (show_all || (!ci->HasMLock(cm->Name, true)) - && (!ci->c || !(ci->c->HasMode(CMODE_SECRET))))) + if (ci->last_topic && (show_all || (!ci->HasMLock(CMODE_SECRET, true) && (!ci->c || !ci->c->HasMode(CMODE_SECRET))))) { notice_lang(Config.s_ChanServ, u, CHAN_INFO_LAST_TOPIC, ci->last_topic); notice_lang(Config.s_ChanServ, u, CHAN_INFO_TOPIC_SET_BY, ci->last_topic_setter.c_str()); -- cgit