mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-29 21:54:22 +01:00
Uh, I thought I committed this already...moved functions from fix.py to utils.py.
This commit is contained in:
parent
bef838bf42
commit
55e3478668
@ -400,7 +400,8 @@ class FunDB(callbacks.Privmsg):
|
||||
channel = privmsgs.getChannel(msg, args)
|
||||
nick = privmsgs.getArgs(args)
|
||||
try:
|
||||
(nick, reason) = map(' '.join, itersplit(nick.split(' '), 'for'.__eq__))
|
||||
(nick, reason) = map(' '.join,
|
||||
utils.itersplit('for'.__eq__, nick.split(), 1))
|
||||
except ValueError:
|
||||
nick = ' '.join(args)
|
||||
reason = ""
|
||||
@ -437,7 +438,8 @@ class FunDB(callbacks.Privmsg):
|
||||
channel = privmsgs.getChannel(msg, args)
|
||||
nick = privmsgs.getArgs(args)
|
||||
try:
|
||||
(nick, reason) = map(' '.join, itersplit(nick.split(' '), 'for'.__eq__))
|
||||
(nick, reason) = map(' '.join,
|
||||
utils.itersplit('for'.__eq__, nick.split(), 1))
|
||||
except ValueError:
|
||||
nick = ' '.join(args)
|
||||
reason = ""
|
||||
|
Loading…
Reference in New Issue
Block a user