Added "unknown command".

This commit is contained in:
Bandie Yip Kojote 2016-05-11 01:15:24 +02:00
parent 071bf0a8f1
commit 2b1729784c
1 changed files with 5 additions and 1 deletions

View File

@ -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)