3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 01:09:22 +01:00

Irc: rename 'chandata' in SQUIT payload to 'channeldata'

This commit is contained in:
James Lu 2016-08-27 17:42:07 -07:00
parent c68c941c1d
commit 87757a60a3
2 changed files with 2 additions and 2 deletions

View File

@ -1376,7 +1376,7 @@ class Protocol():
return {'target': split_server, 'users': affected_users, 'name': sname,
'uplink': uplink, 'nicks': affected_nicks, 'serverdata': serverdata,
'chandata': old_channels}
'channeldata': old_channels}
def parseCapabilities(self, args):
"""

View File

@ -100,7 +100,7 @@ The following hooks represent regular IRC commands sent between servers.
- `target` is the SID of the server being split, while `name` is the server's name.
- `users` is a list of all UIDs affected by the netsplit. `nicks` maps channels to lists of nicks affected.
- `serverdata` provides the `IrcServer` object of the server that was split.
- `chandata` provides the channel index of the network before the netsplit was processed, allowing plugins to track who was affected by a netsplit in a channel specific way.
- `channeldata` provides the channel index of the network before the netsplit was processed, allowing plugins to track who was affected by a netsplit in a channel specific way.
- **TOPIC**: `{'channel': channel, 'setter': numeric, 'text': 'Welcome to #Lounge!, 'oldtopic': 'Welcome to#Lounge!'}`
- `oldtopic` denotes the original topic, and `text` indicates the new one being set.