From 2b1729784c265dbd67e057a6458d9b27ce9b9069 Mon Sep 17 00:00:00 2001 From: Bandie Yip Kojote Date: Wed, 11 May 2016 01:15:24 +0200 Subject: [PATCH] Added "unknown command". --- PagerBot.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/PagerBot.py b/PagerBot.py index 2ac0f83..d31385d 100644 --- a/PagerBot.py +++ b/PagerBot.py @@ -137,6 +137,10 @@ while 1: elif(line[3].lower() == ":&phonebook"): ircsock.send("PRIVMSG %s %s\r\n" % - (usernick, phonebook.keys())) + (usernick, phonebook.keys())) + + else: + ircsock.send("PRIVMSG %s Unknown command. Type \"/msg %s help\" for more information.\r\n" % + (usernick, NICK)) # print(line)