undo some bad changes
This commit is contained in:
parent
12035fee94
commit
713b21d9f7
|
@ -9,8 +9,8 @@ class Input(dict):
|
|||
def __init__(self, conn, raw, prefix, command, params,
|
||||
nick, user, host, paraml, msg):
|
||||
|
||||
chan = paraml[0]
|
||||
if chan.lower() == conn.nick.lower(): # is a PM
|
||||
chan = paraml[0].lower()
|
||||
if chan == conn.nick.lower(): # is a PM
|
||||
chan = nick
|
||||
|
||||
def say(msg):
|
||||
|
|
|
@ -33,7 +33,7 @@ def nrolls(count, n):
|
|||
|
||||
|
||||
@hook.command('roll')
|
||||
@hook.regex(valid_diceroll, re.I)
|
||||
#@hook.regex(valid_diceroll, re.I)
|
||||
@hook.command
|
||||
def dice(inp):
|
||||
".dice <diceroll> -- simulates dicerolls, e.g. .dice 2d20-d5+4 roll 2 " \
|
||||
|
|
|
@ -12,7 +12,7 @@ def db_init(db):
|
|||
|
||||
|
||||
def get_memory(db, chan, word):
|
||||
row = db.execute("select data from memory where chan=lower(?) and word=lower(?)",
|
||||
row = db.execute("select data from memory where chan=? and word=lower(?)",
|
||||
(chan, word)).fetchone()
|
||||
if row:
|
||||
return row[0]
|
||||
|
|
Loading…
Reference in New Issue