mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-17 06:00:42 +01:00
Ctcp: Add configuration variable supybot.plugins.Ctcp.userinfo. Closes GH-204.
This commit is contained in:
parent
8add4911f5
commit
d8ecc7db5f
@ -50,6 +50,9 @@ conf.registerGlobalValue(Ctcp, 'versionWait',
|
||||
wait after getting a version command (not a CTCP VERSION, but an actual
|
||||
call of the command in this plugin named "version") before replying with
|
||||
the results it has collected."""))
|
||||
conf.registerGlobalValue(Ctcp, 'userinfo',
|
||||
registry.String('', """Determines what will be sent when a
|
||||
USERINFO query is received."""))
|
||||
|
||||
###
|
||||
# supybot.abuse configuration variables.
|
||||
|
@ -90,7 +90,7 @@ class Ctcp(callbacks.PluginRegexp):
|
||||
def ctcpUserinfo(self, irc, msg, match):
|
||||
"\x01USERINFO\x01"
|
||||
self.log.info('Received CTCP USERINFO from %s', msg.prefix)
|
||||
self._reply(irc, msg, 'USERINFO')
|
||||
self._reply(irc, msg, 'USERINFO %s' % self.registryValue('userinfo'))
|
||||
|
||||
def ctcpTime(self, irc, msg, match):
|
||||
"\x01TIME\x01"
|
||||
|
Loading…
x
Reference in New Issue
Block a user