mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Names reimplemented, just a little better
This commit is contained in:
@@ -79,6 +79,18 @@ module.exports = function() {
|
||||
Suggestions.description(msg, coll, guid, offline, socket);
|
||||
});
|
||||
|
||||
socket.on("namechange", function(msg) {
|
||||
Chat.namechange(msg, guid, socket);
|
||||
});
|
||||
|
||||
socket.on("removename", function(msg) {
|
||||
if(typeof(msg) != "object" || !msg.hasOwnProperty("channel")) {
|
||||
socket.emit("update_required");
|
||||
return;
|
||||
}
|
||||
Chat.removename(guid, msg.channel);
|
||||
});
|
||||
|
||||
socket.on("offline", function(msg){
|
||||
if(!msg.hasOwnProperty('status') && !msg.hasOwnProperty('channel')) {
|
||||
socket.emit("update_required");
|
||||
|
||||
Reference in New Issue
Block a user