aboutsummaryrefslogtreecommitdiffstats
path: root/root_commands.c
diff options
context:
space:
mode:
authorMarius Halden <marius.h@lden.org>2016-11-19 10:32:18 +0100
committerMarius Halden <marius.h@lden.org>2016-11-19 10:32:18 +0100
commit08e1027c558a25b0b4f9410048c185e89c7b347a (patch)
treec9c80be4e9984bfc52835b0eac0895f6dfc81b14 /root_commands.c
parentad5637a3fe2f8e25a88d910041791336e0c62271 (diff)
parent11d4123fe9a4d88d475bee6c623fb80af8fdbb0b (diff)
Merge branch 'master' into patched-master
Diffstat (limited to 'root_commands.c')
-rw-r--r--root_commands.c9
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;
}