Pass STXT_NOTICE flag instead of command string to functions downstream of send_text()

This uses another bit in the existing flags argument in place of the command argument, and avoids
having to re-compare against fixed strings ("PRIVMSG", "NOTICE").
This commit is contained in:
Kevin Easton
2017-07-08 21:37:08 +10:00
parent f8c76a4351
commit 1bceb5ed86
4 changed files with 25 additions and 26 deletions

View File

@@ -1250,7 +1250,7 @@ char *new_str;
else
put_it("%s", convert_output_format(fget_string_var(FORMAT_SEND_MSG_FSET), "%s %s %s %s", update_clock(GET_TIME), to, get_server_nickname(from_server), new_str));
if ((*to == '=') && dcc_activechat(to+1))
dcc_chat_transmit(to+2, new_str, new_str, "PRIVMSG", 0);
dcc_chat_transmit(to + 3, new_str, new_str, 0);
else
send_to_server("PRIVMSG %s :%s", to, new_str);
break;