diff options
| author | 2018-08-31 10:50:37 +0100 | |
|---|---|---|
| committer | 2018-08-31 10:50:37 +0100 | |
| commit | abed9cf4ea71dcbad2dd2c049683b8d14b942e09 (patch) | |
| tree | 3e40caf63fa7e1500469f4ad9a0c45c51808aad4 /modules/ids.py | |
| parent | Fix a copy paste fail in IRCLineHandler that caused PARTs to be handled as QUITs (diff) | |
| signature | ||
Reformat
Diffstat (limited to 'modules/ids.py')
| -rw-r--r-- | modules/ids.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/modules/ids.py b/modules/ids.py index c8bd8042..c447bafb 100644 --- a/modules/ids.py +++ b/modules/ids.py @@ -1,18 +1,17 @@ - - class Module(object): _name = "IDs" + def __init__(self, bot): bot.events.on("received.command.myid").hook(self.my_id, - help="Show your user ID") + help="Show your user ID") bot.events.on("received.command.channelid").hook( self.channel_id, channel_only=True, help="Show the current channel's ID") def my_id(self, event): event["stdout"].write("%s: %d" % (event["user"].nickname, - event["user"].id)) + event["user"].id)) def channel_id(self, event): event["stdout"].write("%s: %d" % (event["target"].name, - event["target"].id)) + event["target"].id)) |
