tree checksum vpatch file split hunks

all signers:

antecedents: 9982-getdata

press order:

genesis
9992-handle-edge-cases-add-feedback
9991-improved-logging
9990-keep-ephemeral-ports-open
9989-show-wot-nicks
9988-hash-dedup
9987-embargoing
9986-rebroadcast-simple-hearsay-and-more
9985-single-thread
9984-unbork-at-command
9983-knobs
9982-getdata
9981-replay-notice

patch:

- CE97A842DF4D7C328976CA4DCD0E99E9FF0C5E56FBA68ECB094055089B81A35C303B492FBAB33116FD5BE2213D75976259F7A947E7E4E538BA273C7D42698125
+ AE28C098E89D25444FBD5FD93B6031D40CE4CEF4ACE438A887A6837FAFDE32137C304766A672B58898E36B75F5E8E0B784F58A0803994539D2B8C41CEFE187D1
blatta/lib/client.py
(42 . 10)(42 . 9)
5 def message_from_station(self, msg):
6 targetname = self.server.channel_name if msg.command == BROADCAST else self.nickname
7 pest_prefix = msg.prefix if msg.prefix else msg.speaker
8 formatted_message = ":%s PRIVMSG %s :%s%s" % (
9 formatted_message = ":%s PRIVMSG %s :%s" % (
10 pest_prefix,
11 targetname,
12 msg.warning if msg.warning else "",
13 msg.body
14 )
15 self.__writebuffer += formatted_message + "\r\n"
(537 . 7)(536 . 7)
17 self.message(":%s %s" % (self.server.name, msg))
18
19 def pest_reply(self, msg):
20 self.message(":Pest NOTICE %s :%s" % (self.nickname, msg))
21 self.message(":Pest NOTICE %s :%s" % (self.server.channel_name, msg))
22
23 def reply_403(self, channel):
24 self.reply("403 %s %s :No such channel" % (self.nickname, channel))
- EB3F3EC3FA23E3F350B870585FDBE7CCB548B4B4A266699F943CD97148D4130495D98399F73FA7E8466C61655EA5BCFEE005D1EF07C8FAE66EE91640B9BF0444
+ 9D70F920B8F62BCBC311319DFE98461EBD73E787CC1B97005B2F807F76F4FE99FB45A6650A04A149A854C8C547E87C77D00AFC39426A6756BCD5D7E5D8881221
blatta/lib/message.py
(297 . 10)(297 . 6)
29 def gen_hash(cls, message_bytes):
30 return hashlib.sha256(message_bytes).digest()
31
32 def set_warning(self):
33 if self.timestamp < self.state.get_latest_message_timestamp():
34 self.warning = time.strftime("%Y-%m-%d %H:%M:%S: ", time.localtime(self.timestamp))
35
36 def get_message_bytes(self, peer=None):
37 command = self.command
38 speaker = Message._pad(self.speaker, MAX_SPEAKER_SIZE)
- 24C203C6741B7EB17BF86C2A1046D5BE50F4FDECC7E9B4E5316E2F9101BEDEE9B84CE01A666EDF98F6545574571358E5B2EBC19B12C941F006BC1182DC2992F2
+ 4A412C5198C031650023FCBEB12ECB8F2144D9CEF45B9996873C444A8FC246E61B96755250DD0D76EF7B9087CBB49121CE7BCBADC2E043AC7B0114FD5514EB4F
blatta/lib/station.py
(1 . 4)(1 . 6)
43 VERSION = 9982
44 import time
45
46 VERSION = 9981
47
48 import binascii
49 import logging
(206 . 11)(208 . 17)
51 if self.long_buffer.has(message.message_hash):
52 return
53
54 # set a timestamp warning if the message is older than the last displayed message.
55 message.set_warning()
56
57 # send to the irc client
58 if self.client:
59 # emit a replay warning if this message is a getdata response and older than the last
60 # displayed message
61 if message.get_data_response:
62 if message.timestamp < self.state.get_latest_message_timestamp():
63 warning = time.strftime(
64 "Replay: %Y-%m-%d %H:%M:%S:",
65 time.localtime(message.timestamp)
66 )
67 self.client.pest_reply(warning)
68 self.client.message_from_station(message)
69
70 # we only update the address table if the speaker is same as peer