Current version
Git/Latestdiff: 1.5.6
Latest Snapshots
Produced after each commit or rebase to new upstream version
GIT
RSBAC source code, can be unstable sometimes
No events planned
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
team:kang:bot [2005/11/08 21:40] kang created |
team:kang:bot [2006/05/02 15:40] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
===== Module registration ===== | ===== Module registration ===== | ||
- | <code> | + | <code python> |
# Module loading file | # Module loading file | ||
# Add the lines with YOURMODULE, your module should also be present | # Add the lines with YOURMODULE, your module should also be present | ||
Line 20: | Line 20: | ||
===== Module itself ===== | ===== Module itself ===== | ||
- | <code>import os, sys | ||
- | __info__ = {'author': 'kang', | + | Skeleton: |
+ | |||
+ | <code python> | ||
+ | import os, sys | ||
+ | |||
+ | __info__ = { 'author': 'kang', | ||
'email': 'kang@insecure.ws', | 'email': 'kang@insecure.ws', | ||
'version': '1', | 'version': '1', | ||
Line 32: | Line 36: | ||
def init(): | def init(): | ||
- | def chanmsg_handler(nick, cmd, args): | + | def chanmsg_handler(channel, nick, cmd, args): |
- | def privmsg_handler(nick, msg): | + | def privmsg_handler(channel, nick, msg): |
def die(): | def die(): | ||
Line 44: | Line 48: | ||
Module Sample: | Module Sample: | ||
- | <code> | + | <code python> |
import os, sys | import os, sys | ||
import random | import random |