Fixed PrivMsg delivery + added new server commands

This commit is contained in:
Stack Fault
2023-03-31 13:46:07 -04:00
parent 3319b310d3
commit 9a4433ee03
3 changed files with 70 additions and 1 deletions

View File

@@ -219,7 +219,8 @@ exports.getModule = class MrcModule extends ServerModule {
connectedSockets.forEach(client => {
if (
message.to_user == '' ||
message.to_user == client.username ||
// Fix PrivMSG delivery on case mismatch
message.to_user.toUpperCase() == client.username.toUpperCase() ||
message.to_user == 'CLIENT' ||
message.from_user == client.username ||
message.to_user == 'NOTME'