aboutsummaryrefslogtreecommitdiffstats
path: root/irc_commands.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2006-07-03 23:22:45 +0200
committerWilmer van der Gaast <wilmer@gaast.net>2006-07-03 23:22:45 +0200
commit5b52a4895e5a59ff6509f7771f4d8665737688c3 (patch)
tree32c13033b127804864507d8ff90c0c274f8b07e5 /irc_commands.c
parent911f2eb7060f6af6fe8e4e02144cfb7c4bb4cc8b (diff)
Implemented per-account nick lists instead of per-protocol nick lists.
nick_t is dead, instead nicks are just saves in a per-account_t GLib hash table. While doing this, the import_buddies command finally died and text_save() disappeared, because the old file format can't handle most of the new features in this branch anyway. Still have to implement support for the new nick lists in text_load()!
Diffstat (limited to 'irc_commands.c')
-rw-r--r--irc_commands.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/irc_commands.c b/irc_commands.c
index 889de9da..47d9e8cb 100644
--- a/irc_commands.c
+++ b/irc_commands.c
@@ -477,7 +477,8 @@ static void irc_cmd_whois( irc_t *irc, char **cmd )
if( u->gc )
irc_reply( irc, 312, "%s %s.%s :%s network", u->nick, u->gc->acc->user,
- *u->gc->acc->server ? u->gc->acc->server : "", u->gc->acc->prpl->name );
+ u->gc->acc->server && *u->gc->acc->server ? u->gc->acc->server : "",
+ u->gc->acc->prpl->name );
else
irc_reply( irc, 312, "%s %s :%s", u->nick, irc->myhost, IRCD_INFO );