Commit graph

71 commits

Author SHA1 Message Date
980ec5b855 Apply S2C and C2S naming scheme for easy packet direction identification. 2024-05-20 23:00:47 +00:00
a0e6fbbeea Packet packing micro optimisation. 2024-05-20 16:24:14 +00:00
610f9ab142 Connection handling rewrite. 2024-05-20 16:16:32 +00:00
fa8c416b77 Use server start timestamp for welcome MOTD message and MOTD file last write for the other one. 2024-05-20 02:27:46 +00:00
1d781bd72c Added base class for packets with timestamp. 2024-05-20 02:16:38 +00:00
042b6ddbd6 Removed IServerPacket interface. 2024-05-20 01:35:39 +00:00
c490dcf128 Extracted all log packets into their own ones. 2024-05-20 01:35:33 +00:00
549c80740d Rewrote user and channel collections. 2024-05-19 21:02:17 +00:00
1a8c44a4ba Cleaned up the names of some of the base classes. 2024-05-19 02:17:51 +00:00
bd23d3aa15 Some cleanups (snapshot, don't run this). 2024-05-19 01:53:32 +00:00
68a523f76a Use HasFlag instead of custom Can method. 2024-05-17 23:50:22 +00:00
322500739e Moved some things out of the MessagePopulatePacket class. 2024-05-14 22:56:56 +00:00
a6a7e56bd1 Drew the rest of the fucking owl. 2024-05-14 22:17:25 +00:00
7bcf5acb7e Created more discrete error/response packets. 2024-05-14 19:11:09 +00:00
907711e753 Split some packets out of LegacyCommandResponse. 2024-05-13 20:55:54 +00:00
795a87fe56 Added migration to update event types of older messages. 2024-05-10 19:23:19 +00:00
a6569815af Enabled explicit nullable. 2024-05-10 19:18:55 +00:00
b95cd06cb1 Reduce usage of working objects in packet objects as much as possible. 2024-05-10 18:29:48 +00:00
356409eb16 Simplified packet building. 2024-05-10 17:28:52 +00:00
1ba94a526c Removed unused method from ChatMessageAddPacket. 2024-05-10 15:25:50 +00:00
0b0de00cc4 Updated MySQL connector library. 2024-05-10 15:24:56 +00:00
b1fae4bdeb Simplified Pack method return type. 2024-05-10 15:24:43 +00:00
fc7d428f76 Split name change notification out of UserUpdatePacket. 2024-05-10 15:07:56 +00:00
54af837c82 Fixed various inconsistencies with Sock Chat. 2024-05-09 21:31:19 +00:00
5985f63744 Allow super users to kick anyone regardless of ranking. 2023-11-07 14:50:55 +00:00
a9ca3705ad Keep track of super user status. 2023-11-07 14:49:12 +00:00
294471dcfd Fixed inverted permission for /create.
For the love of god remember to update the permissions table and recalculate before starting back up.
2023-11-07 14:33:07 +00:00
c46d117d15 Merge branch 'new-master' of git.flash.moe:flashii/sharp-chat into new-master 2023-11-04 23:37:13 +00:00
05fcbcb0f8 Fixed issues relating to event_sender_name being nullable for some reason. 2023-11-04 23:37:02 +00:00
03b3b6b0a3 Fixed issue when starting without any configuration data present. 2023-10-01 04:54:30 +02:00
a7a05f04bd Don't remove AFK status when opening a new connection. 2023-08-09 14:59:29 +00:00
dc4989a3cf Fixed connection error when issuing a permanent ban. 2023-07-23 21:45:10 +00:00
903e39ab76 Removed any remaining references to silencing. 2023-07-23 21:36:22 +00:00
8c19c22736 Reworking event dispatching... I think?
I did this make in february but left it uncommitted. Hopefully it's stable!
2023-07-23 21:31:13 +00:00
4e0def980f Revised event storage to use less magic classes. 2023-02-23 22:46:49 +01:00
82973f7a33 Improved user updating but also other things that were already local. 2023-02-22 01:28:53 +01:00
8de3ba8dbb Even slightly lesser aggressive question mark 2023-02-19 23:47:53 +01:00
86a46539f2 Less haphazard locking (perhaps too?) 2023-02-19 23:27:08 +01:00
70df99fe9b Significantly less stupid connection resolving. 2023-02-17 23:17:24 +01:00
546e8a2c83 Simplify rate limiter, disabled silencing and merged BasicUser and ChatUser. 2023-02-17 22:47:44 +01:00
d268a419dc Cleaned up channel/user association logic. 2023-02-17 20:02:35 +01:00
1466562c54 Use virtual channel name for DMs. 2023-02-16 23:56:50 +01:00
a5089f14b8 Undid the IPacketTarget system. 2023-02-16 23:47:30 +01:00
13ae843c8d No longer keep track of connections within the ChatUser class. 2023-02-16 23:33:48 +01:00
06af94e94f Renamed 'Sessions' to 'Connections' 2023-02-16 22:25:41 +01:00
c8a589c1c1 Un-switch packet handlers. 2023-02-16 22:16:06 +01:00
ea56af0210 Turned commands into classes instead of a shitty switch. 2023-02-16 21:34:59 +01:00
d1f78a7e8b Actually send the message deletion packet. 2023-02-16 17:10:30 +01:00
dbdaaeec9e Better session ID generation code. 2023-02-10 08:06:07 +01:00
8050a295c1 Updated protocol documentation to indicate that IDs should not be treated as numbers. 2023-02-10 07:28:36 +01:00