diff options
author | Timo Sirainen <cras@irssi.org> | 2001-05-11 12:55:18 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-05-11 12:55:18 +0000 |
commit | f3f8eb620a4c47da0479b2fc7c8e1e1ed386d5c8 (patch) | |
tree | 0295ad9ce763d5ed7732a40fc8da7dbe72b99279 /src/irc | |
parent | cb2868557491ce3d1d61d6d55811a80a387efe4f (diff) | |
download | irssi-f3f8eb620a4c47da0479b2fc7c8e1e1ed386d5c8.zip |
added "dcc request send" signal - irssi now prints "DCC CHAT/SEND request
sent to nick".
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1472 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc')
-rw-r--r-- | src/irc/dcc/dcc-chat.c | 2 | ||||
-rw-r--r-- | src/irc/dcc/dcc-send.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/irc/dcc/dcc-chat.c b/src/irc/dcc/dcc-chat.c index 1a02bf5d..9d921559 100644 --- a/src/irc/dcc/dcc-chat.c +++ b/src/irc/dcc/dcc-chat.c @@ -439,6 +439,8 @@ static void cmd_dcc_chat(const char *data, IRC_SERVER_REC *server) (GInputFunction) dcc_chat_listen, dcc); /* send the chat request */ + signal_emit("dcc request send", 1, dcc); + dcc_ip2str(&own_ip, host); irc_send_cmdv(server, "PRIVMSG %s :\001DCC CHAT CHAT %s %d\001", nick, host, port); diff --git a/src/irc/dcc/dcc-send.c b/src/irc/dcc/dcc-send.c index 8f517063..393ba935 100644 --- a/src/irc/dcc/dcc-send.c +++ b/src/irc/dcc/dcc-send.c @@ -232,6 +232,8 @@ static void cmd_dcc_send(const char *data, IRC_SERVER_REC *server, (GInputFunction) dcc_send_connected, dcc); /* send DCC request */ + signal_emit("dcc request send", 1, dcc); + dcc_ip2str(&own_ip, host); str = g_strdup_printf(dcc->file_quoted ? "DCC SEND \"%s\" %s %d %lu" : |