diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2006-07-03 01:20:27 +0200 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2006-07-03 01:20:27 +0200 |
commit | 911f2eb7060f6af6fe8e4e02144cfb7c4bb4cc8b (patch) | |
tree | 596dd741397ba57b4e17d521a583bde46b15935b /root_commands.c | |
parent | 96863f65118767e968469e82ba6b02006e36b81c (diff) |
Added display_name setting for MSN connections. (Should replace the nick
command later.)
Diffstat (limited to 'root_commands.c')
-rw-r--r-- | root_commands.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/root_commands.c b/root_commands.c index b975b0f4..42e113ed 100644 --- a/root_commands.c +++ b/root_commands.c @@ -386,7 +386,12 @@ static void cmd_account( irc_t *irc, char **cmd ) if( a->gc && s && s->flags & ACC_SET_OFFLINE_ONLY ) { - irc_usermsg( irc, "This setting can only be changed when the account is off-line" ); + irc_usermsg( irc, "This setting can only be changed when the account is %s-line", "off" ); + return; + } + else if( !a->gc && s && s->flags & ACC_SET_ONLINE_ONLY ) + { + irc_usermsg( irc, "This setting can only be changed when the account is %s-line", "on" ); return; } |