X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/987ef7eb1f6c6e6bfb79fc0e7759702ff372ac7a..f5e7f3182bde769e585d5b269d9639de111ec862:/modules/core/m_message.c diff --git a/modules/core/m_message.c b/modules/core/m_message.c index 62db04d..08ccc1d 100644 --- a/modules/core/m_message.c +++ b/modules/core/m_message.c @@ -516,6 +516,7 @@ msg_channel(int p_or_n, const char *command, sendto_channel_flags(client_p, ALL_MEMBERS, source_p, chptr, "%s %s :%s", command, chptr->chname, text); if (p_or_n != NOTICE && *text == '\001' && + strncasecmp(text + 1, "ACTION", 6) && rb_dlink_list_length(&chptr->locmembers) > (unsigned)(GlobalSetOptions.floodcount / 2)) source_p->large_ctcp_sent = rb_current_time(); } @@ -744,7 +745,6 @@ static void msg_client(int p_or_n, const char *command, struct Client *source_p, struct Client *target_p, const char *text) { - const char *awaymsg; int do_floodcount = 0; if(MyClient(source_p)) @@ -789,9 +789,9 @@ msg_client(int p_or_n, const char *command, return; } - if(MyConnect(source_p) && (p_or_n != NOTICE) && target_p->user && (awaymsg = get_metadata(target_p, "away")) != NULL) + if(MyConnect(source_p) && (p_or_n != NOTICE) && target_p->user && target_p->user->away) sendto_one_numeric(source_p, RPL_AWAY, form_str(RPL_AWAY), - target_p->name, awaymsg); + target_p->name, target_p->user->away); if(MyClient(target_p)) {