tree checksum vpatch file split hunks
all signers:
antecedents: 9982-getdata
press order:
patch:
(42 . 10)(42 . 9)- EB3F3EC3FA23E3F350B870585FDBE7CCB548B4B4A266699F943CD97148D4130495D98399F73FA7E8466C61655EA5BCFEE005D1EF07C8FAE66EE91640B9BF0444
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))
(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(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