| |
- add_cmd(func, name=None)
- Binds an IRC command function to the given command name.
- add_hook(func, command)
- Binds a hook function to the given command name.
- applyModes(irc, target, changedmodes)
- Takes a list of parsed IRC modes, and applies them on the given target.
The target can be either a channel or a user; this is handled automatically.
This method is deprecated. Use irc.applyModes() instead.
- getDatabaseName(dbname)
- Returns a database filename with the given base DB name appropriate for the
current PyLink instance.
This returns '<dbname>.db' if the running config name is PyLink's default
(config.yml), and '<dbname>-<config name>.db' for anything else. For example,
if this is called from an instance running as './pylink testing.yml', it
would return '<dbname>-testing.db'.
- getProtocolModule(protoname)
- Imports and returns the protocol module requested.
- isChannel(s)
- Returns whether the string given is a valid channel name.
- isHostmask(text)
- Returns whether the given text is a valid hostmask.
- isNick(s, nicklen=None)
- Returns whether the string given is a valid nick.
- isServerName(s)
- Returns whether the string given is a valid IRC server name.
- loadModuleFromFolder(name, folder)
- Imports and returns a module, if existing, from a specific folder.
- parseModes(irc, target, args)
- Parses a modestring list into a list of (mode, argument) tuples.
['+mitl-o', '3', 'person'] => [('+m', None), ('+i', None), ('+t', None), ('+l', '3'), ('-o', 'person')]
This method is deprecated. Use irc.parseModes() instead.
|