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.
Both sides previous revision Previous revision Next revision | Previous revision | ||
team:kang:bot [2005/11/08 21:41] kang |
team:kang:bot [2006/05/02 15:40] (current) |
||
---|---|---|---|
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 |