diff options
author | Timo Sirainen <cras@irssi.org> | 2001-06-10 23:45:47 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-06-10 23:45:47 +0000 |
commit | a12899801062f761f86d48243b91ffec9eeb42e5 (patch) | |
tree | eef63b924253019439f6b600f9ed577acf17d045 /src | |
parent | 54242cdac5f671d36ee76fd8ea78439cf2ff8ffe (diff) | |
download | irssi-a12899801062f761f86d48243b91ffec9eeb42e5.zip |
Joins to channel now adds the nick to completion list.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1548 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r-- | src/fe-common/core/chat-completion.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/fe-common/core/chat-completion.c b/src/fe-common/core/chat-completion.c index 3cbcbf02..d1b90694 100644 --- a/src/fe-common/core/chat-completion.c +++ b/src/fe-common/core/chat-completion.c @@ -156,6 +156,16 @@ static void sig_message_public(SERVER_REC *server, const char *msg, } } +static void sig_message_join(SERVER_REC *server, const char *channel, + const char *nick, const char *address) +{ + CHANNEL_REC *chanrec; + + chanrec = channel_find(server, channel); + if (channel != NULL) + CHANNEL_LAST_MSG_ADD(chanrec, nick, FALSE); +} + static void sig_message_private(SERVER_REC *server, const char *msg, const char *nick, const char *address) { @@ -829,6 +839,7 @@ void chat_completion_init(void) signal_add("complete command connect", (SIGNAL_FUNC) sig_complete_connect); signal_add("complete command server", (SIGNAL_FUNC) sig_complete_connect); signal_add("message public", (SIGNAL_FUNC) sig_message_public); + signal_add("message join", (SIGNAL_FUNC) sig_message_join); signal_add("message private", (SIGNAL_FUNC) sig_message_private); signal_add("message own_public", (SIGNAL_FUNC) sig_message_own_public); signal_add("message own_private", (SIGNAL_FUNC) sig_message_own_private); @@ -850,6 +861,7 @@ void chat_completion_deinit(void) signal_remove("complete command connect", (SIGNAL_FUNC) sig_complete_connect); signal_remove("complete command server", (SIGNAL_FUNC) sig_complete_connect); signal_remove("message public", (SIGNAL_FUNC) sig_message_public); + signal_remove("message join", (SIGNAL_FUNC) sig_message_join); signal_remove("message private", (SIGNAL_FUNC) sig_message_private); signal_remove("message own_public", (SIGNAL_FUNC) sig_message_own_public); signal_remove("message own_private", (SIGNAL_FUNC) sig_message_own_private); |