mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-30 22:52:34 +01:00
11bbbfba19
Closes #236.
17 lines
441 B
Python
17 lines
441 B
Python
# ctcp.py: Handles basic CTCP requests.
|
|
import sys
|
|
import os
|
|
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
|
|
|
import utils
|
|
from 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')
|