mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-27 13:09:23 +01:00
parent
d362063e8a
commit
11bbbfba19
@ -254,6 +254,9 @@ plugins:
|
|||||||
# PyLink is running.
|
# PyLink is running.
|
||||||
- networks
|
- networks
|
||||||
|
|
||||||
|
# Ctcp plugin: handles basic CTCP replies (VERSION, etc).
|
||||||
|
- ctcp
|
||||||
|
|
||||||
# Oper commands plugin: Provides a subset of network management commands.
|
# Oper commands plugin: Provides a subset of network management commands.
|
||||||
# (KILL, JUPE, etc.)
|
# (KILL, JUPE, etc.)
|
||||||
# Note: these commands will be made available to anyone who's opered on your
|
# Note: these commands will be made available to anyone who's opered on your
|
||||||
|
16
plugins/ctcp.py
Normal file
16
plugins/ctcp.py
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# 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')
|
Loading…
Reference in New Issue
Block a user