Let's try and use the database we'd normally be using.

This commit is contained in:
James Vega 2004-12-10 03:39:45 +00:00
parent b8da3624b3
commit 3b61351d21
1 changed files with 4 additions and 1 deletions

View File

@ -214,7 +214,10 @@ class Markov(callbacks.Privmsg):
return m.args[1].split()
def doPrivmsg(self, irc, msg):
channel = msg.args[0]
if not conf.supybot.databases.plugins.channelSpecific():
channel = conf.supybot.databases.plugins.channelSpecific.channel()
else:
channel = msg.args[0]
if irc.isChannel(channel):
canSpeak = False
now = time.time()