diff options
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; } |