diff --git a/plugins/commands.py b/plugins/commands.py index beec961..9830202 100644 --- a/plugins/commands.py +++ b/plugins/commands.py @@ -14,3 +14,8 @@ def tell(irc, source, args): proto._sendFromUser(irc, 'NOTICE %s :%s' % (irc.users[target].uid, text)) except KeyError: proto._sendFromUser(irc, 'PRIVMSG %s :unknown user %r' % (source, target)) + +@proto.add_cmd +def debug(irc, source, args): + proto._sendFromUser(irc, 'NOTICE %s :Debug info printed to console.' % (source)) + print(irc.users)