diff options
author | ailin-nemui <ailin-nemui@users.noreply.github.com> | 2017-01-02 14:44:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-02 14:44:07 +0100 |
commit | 91f48c6f0e03e53c0968a5433d672ea966006e59 (patch) | |
tree | 70d13fe291401df18825b1f91ccb6ba3fe1066da /src/irc/core/irc-queries.c | |
parent | 29ad8baedcf79a9ab50c2d118750969031a35042 (diff) | |
parent | 0d6add02cf1a1e0dc3905a482d259a8851b4939c (diff) | |
download | irssi-91f48c6f0e03e53c0968a5433d672ea966006e59.zip |
Merge pull request #586 from LemonBoy/fix-580
Process the nick changes in queries before the PRIVMSG is handled.
Diffstat (limited to 'src/irc/core/irc-queries.c')
-rw-r--r-- | src/irc/core/irc-queries.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/irc/core/irc-queries.c b/src/irc/core/irc-queries.c index 12861744..b611e621 100644 --- a/src/irc/core/irc-queries.c +++ b/src/irc/core/irc-queries.c @@ -79,20 +79,6 @@ static void check_query_changes(IRC_SERVER_REC *server, const char *nick, } } -static void event_privmsg(IRC_SERVER_REC *server, const char *data, - const char *nick, const char *address) -{ - char *params, *target, *msg; - - g_return_if_fail(data != NULL); - if (nick == NULL) - return; - - params = event_get_params(data, 2 | PARAM_FLAG_GETREST, &target, &msg); - check_query_changes(server, nick, address, target); - g_free(params); -} - static void ctcp_action(IRC_SERVER_REC *server, const char *msg, const char *nick, const char *address, const char *target) @@ -117,14 +103,12 @@ static void event_nick(SERVER_REC *server, const char *data, void irc_queries_init(void) { - signal_add_last("event privmsg", (SIGNAL_FUNC) event_privmsg); signal_add_last("ctcp action", (SIGNAL_FUNC) ctcp_action); signal_add("event nick", (SIGNAL_FUNC) event_nick); } void irc_queries_deinit(void) { - signal_remove("event privmsg", (SIGNAL_FUNC) event_privmsg); signal_remove("ctcp action", (SIGNAL_FUNC) ctcp_action); signal_remove("event nick", (SIGNAL_FUNC) event_nick); } |