mirror of
https://github.com/irssi/irssi.git
synced 2026-08-19 00:22:17 +02: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:
parent
70cc8afa4a
commit
bf8616ee26
2 changed files with 3 additions and 1 deletions
|
|
@ -502,7 +502,7 @@ static void event_userhost(const char *data, IRC_SERVER_REC *server)
|
|||
params = event_get_params(data, 2, NULL, &hosts);
|
||||
|
||||
phosts = g_strsplit(hosts, " ", -1);
|
||||
for (pos = phosts; pos != NULL; pos++) {
|
||||
for (pos = phosts; *pos != NULL; pos++) {
|
||||
ptr = strchr(*pos, '=');
|
||||
if (ptr == NULL) continue;
|
||||
*ptr++ = '\0';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue