summaryrefslogtreecommitdiff
path: root/src/messages.c
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-11-08 20:06:21 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-11-08 20:06:21 +0000
commit458be36a321615c0f3004a6abde7e14d40f5da32 (patch)
tree711be83fc6f2d49f9d31015db51730cdac57f687 /src/messages.c
parent38ad96c57c520dd84c8de21766f5de082a844a99 (diff)
Rewrote all of the old C style flag systems into a new Flag class which everything inherits from. This breaks reading and writing flags to the old databases (and probably many other things aswell) - Don't use it
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2636 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/messages.c')
-rw-r--r--src/messages.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/messages.c b/src/messages.c
index 9977de75e..67377a0da 100644
--- a/src/messages.c
+++ b/src/messages.c
@@ -130,7 +130,7 @@ int m_privmsg(const char *source, const char *receiver, const char *msg)
if (*receiver == '#') {
if (s_BotServ && (ci = cs_findchan(receiver))) {
/* Some paranoia checks */
- if (!(ci->flags & CI_FORBIDDEN) && ci->c && ci->bi) {
+ if (!ci->HasFlag(CI_FORBIDDEN) && ci->c && ci->bi) {
botchanmsgs(u, ci, const_cast<char *>(msg)); // XXX Unsafe cast, this needs reviewing -- CyberBotX
}
}
@@ -313,8 +313,7 @@ int m_whois(const char *source, const char *who)
ircdproto->SendNumeric(ServerName, 317, source, "%s %ld %ld :seconds idle, signon time", bi->nick, time(NULL) - bi->lastmsg, start_time);
ircdproto->SendNumeric(ServerName, 318, source, "%s :End of /WHOIS list.", who);
return MOD_CONT;
- } else if (!ircd->svshold && (na = findnick(who))
- && (na->status & NS_KILL_HELD)) {
+ } else if (!ircd->svshold && (na = findnick(who)) && na->HasFlag(NS_KILL_HELD)) {
/* We have a nick enforcer client here that we need to respond to.
* We can't just say it doesn't exist here, even tho it does for
* other servers :) -GD