Replace with channel name in factoids
This commit is contained in:
@ -45,7 +45,7 @@ def get_factoid(db, name, channel):
|
||||
factoid = cur.fetchall()
|
||||
if len(factoid):
|
||||
f = factoid[0]
|
||||
return Factoid(f[0],f[1],f[2],f[3],f[4])
|
||||
return Factoid(f[0],f[1].replace('$chan',channel),f[2],f[3],f[4])
|
||||
return None
|
||||
|
||||
def resolve_alias(db,factoid,channel,loop=0):
|
||||
|
Reference in New Issue
Block a user