diff options
author | Marius Halden <marius.h@lden.org> | 2016-11-19 10:32:18 +0100 |
---|---|---|
committer | Marius Halden <marius.h@lden.org> | 2016-11-19 10:32:18 +0100 |
commit | 08e1027c558a25b0b4f9410048c185e89c7b347a (patch) | |
tree | c9c80be4e9984bfc52835b0eac0895f6dfc81b14 /root_commands.c | |
parent | ad5637a3fe2f8e25a88d910041791336e0c62271 (diff) | |
parent | 11d4123fe9a4d88d475bee6c623fb80af8fdbb0b (diff) |
Merge branch 'master' into patched-master
Diffstat (limited to 'root_commands.c')
-rw-r--r-- | root_commands.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/root_commands.c b/root_commands.c index 414ab640..338fdf5f 100644 --- a/root_commands.c +++ b/root_commands.c @@ -447,11 +447,10 @@ static void cmd_account(irc_t *irc, char **cmd) prpl = find_protocol(cmd[2]); if (prpl == NULL) { - if (is_protocol_disabled(cmd[2])) { - irc_rootmsg(irc, "Protocol disabled in global config"); - } else { - irc_rootmsg(irc, "Unknown protocol"); - } + char *msg = explain_unknown_protocol(cmd[2]); + irc_rootmsg(irc, "Unknown protocol"); + irc_rootmsg(irc, msg); + g_free(msg); return; } |