#include "s_conf.h" /* ConfigFileEntry, ConfigChannel */
#include "s_newconf.h"
#include "logger.h"
-#include "ipv4_from_ipv6.h"
#include "s_assert.h"
struct config_channel_entry ConfigChannel;
/* check_channel_name()
*
* input - channel name
- * output - true if valid channel name, else 0
+ * output - true if valid channel name, else false
* side effects -
*/
bool
}
#ifdef RB_IPV6
if(GET_SS_FAMILY(&who->localClient->ip) == AF_INET6 &&
- ipv4_from_ipv6((const struct sockaddr_in6 *)&who->localClient->ip, &ip4))
+ rb_ipv4_from_ipv6((const struct sockaddr_in6 *)&who->localClient->ip, &ip4))
{
sprintf(src_ip4host, "%s!%s@", who->name, who->username);
s4 = src_ip4host + strlen(src_ip4host);
* inputs - flag 0 if PRIVMSG 1 if NOTICE. RFC
* says NOTICE must not auto reply
* - pointer to source Client
- * - pointer to target channel
- * output - 1 if target is under flood attack
+ * - pointer to target channel
+ * output - true if target is under flood attack
* side effects - check for flood attack on target chptr
*/
-int
+bool
flood_attack_channel(int p_or_n, struct Client *source_p, struct Channel *chptr, char *chname)
{
int delta;
sendto_one(source_p,
":%s NOTICE %s :*** Message to %s throttled due to flooding",
me.name, source_p->name, chptr->chname);
- return 1;
+ return true;
}
else
chptr->received_number_of_privmsgs++;
}
- return 0;
+ return false;
}
/* find_bannickchange_channel()
char *pbuf;
const char *arg;
int dir;
- int arglen;
+ int arglen = 0;
/* Now send to servers... */
mc = 0;