1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

"message mode" -> "message irc mode", also added in signals.txt

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2701 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2002-04-22 09:12:41 +00:00 committed by cras
parent bcc1bc73be
commit 22c0877b56
4 changed files with 10 additions and 7 deletions

View File

@ -305,6 +305,9 @@ fe-irc-messages.c:
"message irc own_ctcp", SERVER_REC, char *cmd, char *data, char *target
"message irc ctcp", SERVER_REC, char *cmd, char *data, char *nick, char *address, char *target
fe-modes.c:
"message irc mode", SERVER_REC, char *channel, char *nick, char *addr, char *mode
dcc/fe-dcc-chat-messages.c:
"message dcc own", DCC_REC *dcc, char *msg
"message dcc own_action", DCC_REC *dcc, char *msg

View File

@ -205,7 +205,7 @@ static void event_mode(IRC_SERVER_REC *server, const char *data,
params = event_get_params(data, 2 | PARAM_FLAG_GETREST,
&channel, &mode);
signal_emit("message mode", 5, server, channel, nick, addr,
signal_emit("message irc mode", 5, server, channel, nick, addr,
g_strchomp(mode));
g_free(params);
}

View File

@ -157,7 +157,7 @@ static void msg_multi_mode(IRC_CHANNEL_REC *channel, const char *sender,
signal_stop();
}
/* FIXME: should be moved to fe-common/core/fe-messages.c.. */
/* FIXME: should be moved to fe-irc-messages.c.. */
static void sig_message_mode(IRC_SERVER_REC *server, const char *channel,
const char *nick, const char *addr,
const char *mode)
@ -215,7 +215,7 @@ void fe_modes_init(void)
mode_tag = -1;
read_settings();
signal_add("message mode", (SIGNAL_FUNC) sig_message_mode);
signal_add("message irc mode", (SIGNAL_FUNC) sig_message_mode);
signal_add("setup changed", (SIGNAL_FUNC) read_settings);
}
@ -224,7 +224,7 @@ void fe_modes_deinit(void)
if (mode_tag != -1)
g_source_remove(mode_tag);
signal_remove("message mode", (SIGNAL_FUNC) sig_message_mode);
signal_remove("message irc mode", (SIGNAL_FUNC) sig_message_mode);
signal_remove("setup changed", (SIGNAL_FUNC) read_settings);
signal_remove("print starting", (SIGNAL_FUNC) sig_print_starting);

View File

@ -399,11 +399,11 @@ static void read_settings(void)
if (old_hide && !hide_netsplit_quits) {
signal_remove("message quit", (SIGNAL_FUNC) msg_quit);
signal_remove("message join", (SIGNAL_FUNC) msg_join);
signal_remove("message mode", (SIGNAL_FUNC) msg_mode);
signal_remove("message irc mode", (SIGNAL_FUNC) msg_mode);
} else if (!old_hide && hide_netsplit_quits) {
signal_add("message quit", (SIGNAL_FUNC) msg_quit);
signal_add("message join", (SIGNAL_FUNC) msg_join);
signal_add("message mode", (SIGNAL_FUNC) msg_mode);
signal_add("message irc mode", (SIGNAL_FUNC) msg_mode);
}
}
@ -432,5 +432,5 @@ void fe_netjoin_deinit(void)
signal_remove("message quit", (SIGNAL_FUNC) msg_quit);
signal_remove("message join", (SIGNAL_FUNC) msg_join);
signal_remove("message mode", (SIGNAL_FUNC) msg_mode);
signal_remove("message irc mode", (SIGNAL_FUNC) msg_mode);
}