mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Oops, I'm retarded. f.func_name needed to be just name.
This commit is contained in:
parent
35ecd7bd98
commit
dfe9008248
@ -91,7 +91,7 @@ class RSS(callbacks.Privmsg):
|
|||||||
args.insert(0, url)
|
args.insert(0, url)
|
||||||
self.rss(irc, msg, args)
|
self.rss(irc, msg, args)
|
||||||
f = types.FunctionType(f.func_code, f.func_globals,
|
f = types.FunctionType(f.func_code, f.func_globals,
|
||||||
f.func_name, closure=f.func_closure)
|
name, closure=f.func_closure)
|
||||||
f.__doc__ = docstring
|
f.__doc__ = docstring
|
||||||
self.feedNames.add(name)
|
self.feedNames.add(name)
|
||||||
setattr(self.__class__, name, f)
|
setattr(self.__class__, name, f)
|
||||||
|
Loading…
Reference in New Issue
Block a user