mirror of
https://github.com/jlu5/PyLink.git
synced 2025-04-25 17:27:55 +02:00
Allow multiple autojoin channels
This commit is contained in:
parent
38bd58f7ff
commit
2e94e9a7d2
@ -22,7 +22,8 @@ server:
|
|||||||
# SID - required for InspIRCd and TS6 based servers. This must be three characters long.
|
# SID - required for InspIRCd and TS6 based servers. This must be three characters long.
|
||||||
# The first char must be a digit [0-9], and the remaining two chars may be letters [A-Z] or digits.
|
# The first char must be a digit [0-9], and the remaining two chars may be letters [A-Z] or digits.
|
||||||
sid: "0AL"
|
sid: "0AL"
|
||||||
channel: "#pylink"
|
# Autojoin channels
|
||||||
|
channels: ["#pylink"]
|
||||||
|
|
||||||
# Plugins to load (omit the .py extension)
|
# Plugins to load (omit the .py extension)
|
||||||
plugins:
|
plugins:
|
||||||
|
5
proto.py
5
proto.py
@ -80,8 +80,9 @@ def connect(irc):
|
|||||||
host=host,
|
host=host,
|
||||||
uid=uid))
|
uid=uid))
|
||||||
f(':%s ENDBURST' % (irc.sid))
|
f(':%s ENDBURST' % (irc.sid))
|
||||||
_sendFromUser(irc, "JOIN {channel} {ts} +nt :,{uid}".format(sid=irc.sid,
|
for channel in irc.serverdata['channels']:
|
||||||
ts=int(time.time()), uid=irc.pseudoclient.uid, channel=irc.serverdata['channel']))
|
_sendFromUser(irc, "JOIN {channel} {ts} +nt :,{uid}".format(sid=irc.sid,
|
||||||
|
ts=int(time.time()), uid=irc.pseudoclient.uid, channel=channel))
|
||||||
|
|
||||||
# :7NU PING 7NU 0AL
|
# :7NU PING 7NU 0AL
|
||||||
def handle_ping(irc, servernumeric, command, args):
|
def handle_ping(irc, servernumeric, command, args):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user