diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2008-08-30 00:25:56 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2008-08-30 00:25:56 +0200 |
commit | 0839b359f9ad6fd88ef94e6ca4eac54c53156c68 (patch) | |
tree | 4580ffa94b96c331e9fb6c90a92281ef19eddc9f /src/plugins/irc/irc-protocol.c | |
parent | eb57354984dd1394f8b50911cee58180bbff2e88 (diff) | |
download | weechat-0839b359f9ad6fd88ef94e6ca4eac54c53156c68.zip |
Add new hooks (info and infolist), IRC plugin now return infos and infolists
Diffstat (limited to 'src/plugins/irc/irc-protocol.c')
-rw-r--r-- | src/plugins/irc/irc-protocol.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c index f75fba255..4e9a6bfd2 100644 --- a/src/plugins/irc/irc-protocol.c +++ b/src/plugins/irc/irc-protocol.c @@ -52,7 +52,10 @@ irc_protocol_get_nick_from_host (const char *host) { static char nick[128]; char *pos; - + + if (!host) + return NULL; + nick[0] = '\0'; if (host) { @@ -1004,8 +1007,8 @@ irc_protocol_reply_version (struct t_irc_server *server, pos = NULL; } - version = weechat_info_get ("version"); - date = weechat_info_get ("date"); + version = weechat_info_get ("version", ""); + date = weechat_info_get ("date", ""); if (version && date) { irc_server_sendf (server, @@ -4168,6 +4171,9 @@ irc_protocol_recv_command (struct t_irc_server *server, const char *entire_line, weechat_prefix ("error"), entire_line); } + /* send signal with received command */ + irc_server_send_signal (server, "irc_in2", command, entire_line); + if (irc_message) free (irc_message); if (nick) |