1
0
mirror of https://github.com/irssi/irssi.git synced 2025-02-02 15:08:01 -05:00

/userhost command didn't work ("unknown command"), and sending it with

/quote userhost crashed.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@255 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-06-01 15:04:41 +00:00 committed by cras
parent 70cc8afa4a
commit bf8616ee26
2 changed files with 3 additions and 1 deletions

View File

@ -824,6 +824,7 @@ void irc_commands_init(void)
command_bind("rping", NULL, (SIGNAL_FUNC) command_self); command_bind("rping", NULL, (SIGNAL_FUNC) command_self);
command_bind("squit", NULL, (SIGNAL_FUNC) command_2self); command_bind("squit", NULL, (SIGNAL_FUNC) command_2self);
command_bind("uping", NULL, (SIGNAL_FUNC) command_self); command_bind("uping", NULL, (SIGNAL_FUNC) command_self);
command_bind("userhost", NULL, (SIGNAL_FUNC) command_self);
command_bind("quote", NULL, (SIGNAL_FUNC) cmd_quote); command_bind("quote", NULL, (SIGNAL_FUNC) cmd_quote);
command_bind("wall", NULL, (SIGNAL_FUNC) cmd_wall); command_bind("wall", NULL, (SIGNAL_FUNC) cmd_wall);
command_bind("wallops", NULL, (SIGNAL_FUNC) command_1self); command_bind("wallops", NULL, (SIGNAL_FUNC) command_1self);
@ -887,6 +888,7 @@ void irc_commands_deinit(void)
command_unbind("rping", (SIGNAL_FUNC) command_self); command_unbind("rping", (SIGNAL_FUNC) command_self);
command_unbind("squit", (SIGNAL_FUNC) command_2self); command_unbind("squit", (SIGNAL_FUNC) command_2self);
command_unbind("uping", (SIGNAL_FUNC) command_self); command_unbind("uping", (SIGNAL_FUNC) command_self);
command_unbind("userhost", (SIGNAL_FUNC) command_self);
command_unbind("quote", (SIGNAL_FUNC) cmd_quote); command_unbind("quote", (SIGNAL_FUNC) cmd_quote);
command_unbind("wall", (SIGNAL_FUNC) cmd_wall); command_unbind("wall", (SIGNAL_FUNC) cmd_wall);
command_unbind("wallops", (SIGNAL_FUNC) command_1self); command_unbind("wallops", (SIGNAL_FUNC) command_1self);

View File

@ -502,7 +502,7 @@ static void event_userhost(const char *data, IRC_SERVER_REC *server)
params = event_get_params(data, 2, NULL, &hosts); params = event_get_params(data, 2, NULL, &hosts);
phosts = g_strsplit(hosts, " ", -1); phosts = g_strsplit(hosts, " ", -1);
for (pos = phosts; pos != NULL; pos++) { for (pos = phosts; *pos != NULL; pos++) {
ptr = strchr(*pos, '='); ptr = strchr(*pos, '=');
if (ptr == NULL) continue; if (ptr == NULL) continue;
*ptr++ = '\0'; *ptr++ = '\0';