void
irc_notice(struct userNode *from, const char *to, const char *message)
{
- if (to[0] != '#' && to[0] != '$'
- && !deliver_to_dummy(from, GetUserN(to), message, 0))
+ if (to[0] == '#' || to[0] == '$'
+ || !deliver_to_dummy(from, GetUserN(to), message, 0))
putsock("%s " P10_NOTICE " %s :%s", from->numeric, to, message);
}
void
irc_privmsg(struct userNode *from, const char *to, const char *message)
{
- if (to[0] != '#' && to[0] != '$'
- && !deliver_to_dummy(from, GetUserN(to), message, 1))
+ if (to[0] == '#' || to[0] == '$'
+ || !deliver_to_dummy(from, GetUserN(to), message, 1))
putsock("%s " P10_PRIVMSG " %s :%s", from->numeric, to, message);
}
unsigned int nn;
free(of_list);
free(privmsg_funcs);
+ num_privmsg_funcs = 0;
free(notice_funcs);
+ num_notice_funcs = 0;
free(mcf_list);
dict_delete(irc_func_dict);
for (nn=0; nn<dead_users.used; nn++)