3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-25 04:02:45 +01:00
PyLink/protocols/stub.py

9 lines
367 B
Python

def connect(irc):
print('%s: Using PyLink stub/testing protocol.' % irc.name)
print('Send password: %s' % irc.serverdata['sendpass'])
print('Receive password: %s' % irc.serverdata['recvpass'])
print('Server: %s:%s' % (irc.serverdata["ip"], irc.serverdata["port"]))
def handle_events(irc, data):
print('%s: Received event: %s' % (irc.name, data))