mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-24 11:39:25 +01:00
13 lines
367 B
Python
13 lines
367 B
Python
# ctcp.py: Handles basic CTCP requests.
|
|
from pylinkirc import utils
|
|
from pylinkirc.log import log
|
|
|
|
def handle_ctcpversion(irc, source, args):
|
|
"""
|
|
Handles CTCP version requests.
|
|
"""
|
|
irc.msg(source, '\x01VERSION %s\x01' % irc.version(), notice=True)
|
|
|
|
utils.add_cmd(handle_ctcpversion, '\x01version')
|
|
utils.add_cmd(handle_ctcpversion, '\x01version\x01')
|