X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/7a27854095fb80ce76e2ef5a59e87f42fbbe45fe..283cfa834c5e05d55462ffe643f0c301ef21ed4a:/src/helpfile.c diff --git a/src/helpfile.c b/src/helpfile.c index 8a98e3b..8e862bc 100644 --- a/src/helpfile.c +++ b/src/helpfile.c @@ -308,10 +308,18 @@ table_send(struct userNode *from, const char *to, unsigned int size, irc_send_fu if (irc_send) {} /* use that function */ - else if (hi) + else if(IsChannelName(to)) { + irc_send = irc_privmsg; + } + else if (message_dest->no_notice) { + irc_send = irc_privmsg; + } + else if (hi) { irc_send = HANDLE_FLAGGED(hi, USE_PRIVMSG) ? irc_privmsg : irc_notice; - else - irc_send = IsChannelName(to) ? irc_privmsg : irc_notice; + } + else { + irc_send = irc_notice; + } /* Limit size to how much we can show at once */ if (size > sizeof(line)) @@ -483,7 +491,10 @@ vsend_message(const char *dest, struct userNode *src, struct handle_info *handle size = DEFAULT_LINE_SIZE; switch (msg_type & 3) { case 0: - irc_send = irc_notice; + if(message_dest && message_dest->no_notice) + irc_send = irc_privmsg; + else + irc_send = irc_notice; break; case 2: irc_send = irc_wallchops;