Someone asked me how to make your HashId work. Actually, it cannot even be loaded. On any computer.
NameError at line 72: @internalizeDocstring does not exist.
SyntaxError at line 80: missing closing parenthesis
Some additional comments:
This plugin has no docstring.
channell should be renamed to channel
you should wrap strings with _()
Line 53 (reload(hashidentifier)) has reason to be, except for debugging purposes. At least, move to the root of the module.
Why is config variable "channels" in the plural form? It's a channel-specific variable.
Use irc.reply() instead of irc.queueMsg(ircmsgs.privmsg())
Do not reply with multiple message, unless supybot.reply.oneToOne is True (irc.replies() does it automatically)
Do not use op status, but op capability (remove the "if nick in irc.state.channels[channell].ops:" block and add 'op' as a converter to wrap). More over, this command should not depend on a per-channel status/config/capability, but on a global one.
Line 82: Your name should not be in a string. You might want to tell the user he can use @user --capability owner.
I've been gone for quite a number of months, and this should be fixed relatively soon (this was a backup I needed to save after losing the working original). Sorry about the rather long wait
Hi,
Someone asked me how to make your HashId work. Actually, it cannot even be loaded. On any computer.
@internalizeDocstring
does not exist.Some additional comments:
reload(hashidentifier)
) has reason to be, except for debugging purposes. At least, move to the root of the module.irc.reply()
instead ofirc.queueMsg(ircmsgs.privmsg())
supybot.reply.oneToOne
is True (irc.replies()
does it automatically)@user --capability owner
.Regards, Valentin