1
0
mirror of https://github.com/anope/anope.git synced 2026-07-05 01:33:12 +02:00

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
This commit is contained in:
Adam-
2010-05-27 01:51:14 +00:00
parent 3d396f245b
commit a5ddbb0217
3 changed files with 3 additions and 8 deletions
+1 -1
View File
@@ -746,7 +746,7 @@ void bot_raw_ban(User * requester, ChannelInfo * ci, char *nick, const char *rea
ci->c->SetMode(NULL, CMODE_BAN, mask);
/* Check if we need to do a signkick or not -GD */
if (ci->HasFlag(CI_SIGNKICK) || ci->HasFlag(CI_SIGNKICK_LEVEL) && !check_access(requester, ci, CA_SIGNKICK))
if (ci->HasFlag(CI_SIGNKICK) || (ci->HasFlag(CI_SIGNKICK_LEVEL) && !check_access(requester, ci, CA_SIGNKICK)))
ci->c->Kick(ci->bi, u, "%s (%s)", reason ? reason : ci->bi->nick.c_str(), requester->nick.c_str());
else
ci->c->Kick(ci->bi, u, "%s", reason ? reason : ci->bi->nick.c_str());
+1 -6
View File
@@ -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());
+1 -1
View File
@@ -498,7 +498,7 @@ void User::UpdateHost()
{
NickAlias *na = findnick(this->nick);
if (na && (this->nc && na->nc == this->nc || !na->nc->HasFlag(NI_SECURE) && IsRecognized()))
if (na && ((this->nc && na->nc == this->nc) || (!na->nc->HasFlag(NI_SECURE) && IsRecognized())))
{
if (na->last_usermask)
delete [] na->last_usermask;