diff options
author | Olli Salli <olli.salli@collabora.co.uk> | 2007-04-24 13:07:47 +0000 |
---|---|---|
committer | Olli Salli <olli.salli@collabora.co.uk> | 2007-04-24 13:07:47 +0000 |
commit | c4706bd87e05c93bfa9db9df4f13dcf1028bac3f (patch) | |
tree | 29574fe7e1298a37367c59f921b99642378beb0e /src/idle-connection.c | |
parent | fd3cc3f1f6819d3e50aecaa9c06c8d45d56af3a6 (diff) |
Move emitting Renamed back to IdleConnection's _nick_handler, but attach it with IDLE_PARSER_HANDLER_PRIORITY_FIRST
Diffstat (limited to 'src/idle-connection.c')
-rw-r--r-- | src/idle-connection.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/idle-connection.c b/src/idle-connection.c index e7c100d..71659ca 100644 --- a/src/idle-connection.c +++ b/src/idle-connection.c @@ -471,7 +471,7 @@ static gboolean _iface_start_connecting(TpBaseConnection *self, GError **error) idle_parser_add_handler(conn->parser, IDLE_PARSER_CMD_PING, _ping_handler, conn); - idle_parser_add_handler(conn->parser, IDLE_PARSER_PREFIXCMD_NICK, _nick_handler, conn); + idle_parser_add_handler_with_priority(conn->parser, IDLE_PARSER_PREFIXCMD_NICK, _nick_handler, conn, IDLE_PARSER_HANDLER_PRIORITY_FIRST); idle_parser_add_handler(conn->parser, IDLE_PARSER_PREFIXCMD_PRIVMSG_USER, _version_privmsg_handler, conn); irc_handshakes(conn); @@ -685,6 +685,8 @@ static IdleParserHandlerResult _nick_handler(IdleParser *parser, IdleParserMessa tp_handle_ref(handles, new_handle); } + tp_svc_connection_interface_renaming_emit_renamed(TP_SVC_CONNECTION_INTERFACE_RENAMING(conn), old_handle, new_handle); + return IDLE_PARSER_HANDLER_RESULT_NOT_HANDLED; } |