do a deep copy of the string being learned from, since mh_python is weird/corrupty
This commit is contained in:
parent
bed3f7ec23
commit
36fcbde267
|
@ -52,7 +52,7 @@ class MegaHAL(Module):
|
|||
|
||||
def learn_from_irc_event(self, connection, event):
|
||||
"""Learn text when an irc event happens."""
|
||||
what = event.arguments()[0]
|
||||
what = ''.join(event.arguments()[0])
|
||||
mh_python.learn(what)
|
||||
|
||||
def do(self, connection, event, nick, userhost, what, admin_unlocked):
|
||||
|
|
Loading…
Reference in New Issue