Ignore oonbotti2: :D.*

This commit is contained in:
Juhani Haverinen 2015-03-19 22:11:06 +02:00
parent 4d07c5fdee
commit 725a1ffefd
1 changed files with 2 additions and 1 deletions

View File

@ -503,7 +503,8 @@ def parse((line, irc)):
irc.msg(reply, 'Nothing here')
elif cmdline[0] in [irc.nick, irc.nick+',', irc.nick+':']:
question = parsecmd(cmdline, '{question}')
irc.msg(reply, '%s: %s' % (nick, doctor.respond(question)))
if len(question) < 2 or question[:2] != ':D': # Mandated by #osdev-offtopic law
irc.msg(reply, '%s: %s' % (nick, doctor.respond(question)))
elif die_expr.match(cmdline[0]):
die = cmdline[0][1:].split('d')
times = int(die[0]) if die[0] else 1