mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
gotta explicitly split on ' ' since we use \n as a delimiter
This commit is contained in:
parent
bc40ff9d78
commit
ba7b018078
@ -136,7 +136,7 @@ class DbmMarkovDB(object):
|
||||
def getFollower(self, channel, first, second):
|
||||
db = self._getDb(channel)
|
||||
followers = db[self._combine(first, second)]
|
||||
follower = random.choice(followers.split())
|
||||
follower = random.choice(followers.split(' '))
|
||||
return (follower, follower == '\n')
|
||||
|
||||
def firsts(self, channel):
|
||||
|
Loading…
Reference in New Issue
Block a user