Added "unknown command".

This commit is contained in:
Bandie Yip Kojote 2016-05-11 01:15:24 +02:00
parent 071bf0a8f1
commit 2b1729784c

View File

@ -137,6 +137,10 @@ while 1:
elif(line[3].lower() == ":&phonebook"): elif(line[3].lower() == ":&phonebook"):
ircsock.send("PRIVMSG %s %s\r\n" % 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) # print(line)