mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-05 17:52:39 +01:00
Update supybot-newplugin to use the correct base class for plugins.
This commit is contained in:
parent
adff889c44
commit
b05834fb3b
@ -260,9 +260,9 @@ def main():
|
|||||||
else:
|
else:
|
||||||
threaded = 'pass'
|
threaded = 'pass'
|
||||||
if kind == 'command':
|
if kind == 'command':
|
||||||
className = 'callbacks.Privmsg'
|
className = 'callbacks.Plugin'
|
||||||
else:
|
else:
|
||||||
className = 'callbacks.PrivmsgRegexp'
|
className = 'callbacks.PluginRegexp'
|
||||||
if name.endswith('.py'):
|
if name.endswith('.py'):
|
||||||
name = name[:-3]
|
name = name[:-3]
|
||||||
while name[0].islower():
|
while name[0].islower():
|
||||||
|
Loading…
Reference in New Issue
Block a user