Replace with channel name in factoids

This commit is contained in:
Dennis Kaarsemaker 2006-07-11 17:23:51 +02:00
parent de2aec39bf
commit 21c677eb06

View File

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