Fixed issue on URL resolver message
Moved user_to uppercase to a different function
This commit is contained in:
@@ -245,8 +245,7 @@ exports.getModule = class MrcModule extends ServerModule {
|
|||||||
connectedSockets.forEach(client => {
|
connectedSockets.forEach(client => {
|
||||||
if (
|
if (
|
||||||
message.to_user == '' ||
|
message.to_user == '' ||
|
||||||
// Fix PrivMSG delivery on case mismatch
|
message.to_user == client.username.toUpperCase() ||
|
||||||
message.to_user.toUpperCase() == client.username.toUpperCase() ||
|
|
||||||
message.to_user == 'CLIENT' ||
|
message.to_user == 'CLIENT' ||
|
||||||
message.from_user == client.username ||
|
message.from_user == client.username ||
|
||||||
message.to_user == 'NOTME'
|
message.to_user == 'NOTME'
|
||||||
@@ -336,6 +335,13 @@ exports.getModule = class MrcModule extends ServerModule {
|
|||||||
// return;
|
// return;
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
// Make sure to_user is always uppercase
|
||||||
|
try {
|
||||||
|
let to_user_uc = to_user.toUpperCase();
|
||||||
|
to_user = to_user_uc;
|
||||||
|
}
|
||||||
|
catch (e) {}
|
||||||
|
|
||||||
return { from_user, from_site, from_room, to_user, to_site, to_room, body };
|
return { from_user, from_site, from_room, to_user, to_site, to_room, body };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user