update
This commit is contained in:
@ -1,4 +1,3 @@
|
||||
import { getLevel } from "../inc/admin";
|
||||
import modules from "./irc/index";
|
||||
|
||||
import net from "net";
|
||||
@ -101,11 +100,7 @@ export class irc extends EventEmitter {
|
||||
channelid: tmp.params[0],
|
||||
user: Object.assign(this.parsePrefix(tmp.prefix), {
|
||||
account: this.server.user.geti(this.parsePrefix(tmp.prefix).nick).account,
|
||||
prefix: tmp.prefix.charAt(0) === ":" ? tmp.prefix.substring(1) : tmp.prefix,
|
||||
level: getLevel(this.network, Object.assign(this.parsePrefix(tmp.prefix), {
|
||||
account: this.server.user.geti(this.parsePrefix(tmp.prefix).nick).account,
|
||||
prefix: tmp.prefix.charAt(0) === ":" ? tmp.prefix.substring(1) : tmp.prefix
|
||||
}))
|
||||
prefix: tmp.prefix.charAt(0) === ":" ? tmp.prefix.substring(1) : tmp.prefix
|
||||
}),
|
||||
message: tmp.params[1],
|
||||
time: ~~(Date.now() / 1000),
|
||||
@ -189,4 +184,4 @@ Map.prototype.deli = function(val) {
|
||||
for (let [key] of this)
|
||||
if(key.toLowerCase() === val.toLowerCase())
|
||||
this.delete(key);
|
||||
};
|
||||
};
|
||||
|
@ -92,4 +92,4 @@ Map.prototype.deli = function (val) {
|
||||
for (let [key] of this)
|
||||
if (key.toLowerCase() === val.toLowerCase())
|
||||
this.delete(key);
|
||||
};
|
||||
};
|
||||
|
@ -1,4 +1,3 @@
|
||||
import { getLevel } from "../inc/admin";
|
||||
import fetch from "../inc/fetch";
|
||||
import EventEmitter from "events";
|
||||
|
||||
@ -104,13 +103,7 @@ export class tg extends EventEmitter {
|
||||
prefix: `${tmp.from.username}!${tmp.from.id}`,
|
||||
nick: tmp.from.first_name,
|
||||
username: tmp.from.username,
|
||||
account: tmp.from.id.toString(),
|
||||
level: getLevel("Telegram", {
|
||||
prefix: `${tmp.from.username}!${tmp.from.id}`,
|
||||
nick: tmp.from.first_name,
|
||||
username: tmp.from.username,
|
||||
account: tmp.from.id.toString()
|
||||
})
|
||||
account: tmp.from.id.toString()
|
||||
},
|
||||
self: this.server,
|
||||
message: tmp.text,
|
||||
@ -149,4 +142,4 @@ Map.prototype.deli = function(val) {
|
||||
for (let [key] of this)
|
||||
if(key.toLowerCase() === val.toLowerCase())
|
||||
this.delete(key);
|
||||
};
|
||||
};
|
||||
|
Reference in New Issue
Block a user