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

@@ -141,9 +141,9 @@ struct dcc_offer {
int dcc_activechat(char *); /* identify all active chat dcc's */
int dcc_activebot(char *); /* identify all active bot's */
int dcc_activeraw(char *); /* identify all active raw connects */
void dcc_chat_transmit(char *, char *, char *, char *, unsigned);
void dcc_bot_transmit(char *, char *, char *);
void dcc_raw_transmit(char *, char *, char *);
void dcc_chat_transmit(char *, char *, char *, unsigned);
void dcc_bot_transmit(char *, char *, unsigned);
void dcc_raw_transmit(char *, char *, unsigned);
void handle_dcc_offer(struct dcc_offer *);