mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-28 05:29:25 +01:00
inspircd: use NUM to send numerics on insp3
This commit is contained in:
parent
4276607ee4
commit
42e1eda51a
@ -327,10 +327,11 @@ class InspIRCdProtocol(TS6BaseProtocol):
|
|||||||
# given user.
|
# given user.
|
||||||
# <- :70M PUSH 0ALAAAAAA ::midnight.vpn 422 PyLink-devel :Message of the day file is missing.
|
# <- :70M PUSH 0ALAAAAAA ::midnight.vpn 422 PyLink-devel :Message of the day file is missing.
|
||||||
|
|
||||||
# Note: InspIRCd 2.2 uses a new NUM command in this format:
|
# InspIRCd 3 uses a new NUM command in this format:
|
||||||
# :<sid> NUM <numeric source sid> <target uuid> <3 digit number> <params>
|
# -> NUM <numeric source sid> <target uuid> <numeric ID> <params>
|
||||||
# Take this into consideration if we ever target InspIRCd 2.2, even though m_spanningtree
|
if self.remote_proto_ver >= 1205:
|
||||||
# does provide backwards compatibility for commands like this. -GLolol
|
self._send('NUM %s %s %s %s' % (source, target, numeric, text))
|
||||||
|
else:
|
||||||
self._send_with_prefix(self.sid, 'PUSH %s ::%s %s %s %s' % (target, source, numeric, target, text))
|
self._send_with_prefix(self.sid, 'PUSH %s ::%s %s %s %s' % (target, source, numeric, target, text))
|
||||||
|
|
||||||
def away(self, source, text):
|
def away(self, source, text):
|
||||||
@ -567,14 +568,14 @@ class InspIRCdProtocol(TS6BaseProtocol):
|
|||||||
mydict[name] = char[-1]
|
mydict[name] = char[-1]
|
||||||
|
|
||||||
elif args[0] == 'CAPABILITIES':
|
elif args[0] == 'CAPABILITIES':
|
||||||
# Insp 2
|
# insp20:
|
||||||
# <- CAPAB CAPABILITIES :NICKMAX=21 CHANMAX=64 MAXMODES=20
|
# <- CAPAB CAPABILITIES :NICKMAX=21 CHANMAX=64 MAXMODES=20
|
||||||
# IDENTMAX=11 MAXQUIT=255 MAXTOPIC=307 MAXKICK=255 MAXGECOS=128
|
# IDENTMAX=11 MAXQUIT=255 MAXTOPIC=307 MAXKICK=255 MAXGECOS=128
|
||||||
# MAXAWAY=200 IP6SUPPORT=1 PROTOCOL=1202 PREFIX=(Yqaohv)!~&@%+
|
# MAXAWAY=200 IP6SUPPORT=1 PROTOCOL=1202 PREFIX=(Yqaohv)!~&@%+
|
||||||
# CHANMODES=IXbegw,k,FHJLfjl,ACKMNOPQRSTUcimnprstz
|
# CHANMODES=IXbegw,k,FHJLfjl,ACKMNOPQRSTUcimnprstz
|
||||||
# USERMODES=,,s,BHIRSWcghikorwx GLOBOPS=1 SVSPART=1
|
# USERMODES=,,s,BHIRSWcghikorwx GLOBOPS=1 SVSPART=1
|
||||||
|
|
||||||
# Insp 3
|
# insp3:
|
||||||
# CAPAB CAPABILITIES :NICKMAX=30 CHANMAX=64 MAXMODES=20 IDENTMAX=10 MAXQUIT=255 MAXTOPIC=307
|
# CAPAB CAPABILITIES :NICKMAX=30 CHANMAX=64 MAXMODES=20 IDENTMAX=10 MAXQUIT=255 MAXTOPIC=307
|
||||||
# MAXKICK=255 MAXREAL=128 MAXAWAY=200 MAXHOST=64 CHALLENGE=xxxxxxxxx CASEMAPPING=ascii GLOBOPS=1
|
# MAXKICK=255 MAXREAL=128 MAXAWAY=200 MAXHOST=64 CHALLENGE=xxxxxxxxx CASEMAPPING=ascii GLOBOPS=1
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user