remove getLevel
This commit is contained in:
@ -1,5 +1,3 @@
|
||||
import { getLevel } from "../inc/admin";
|
||||
|
||||
import modules from "./irc/index";
|
||||
|
||||
import net from "net";
|
||||
@ -103,10 +101,10 @@ export class irc extends EventEmitter {
|
||||
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), {
|
||||
/*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
|
||||
}))
|
||||
}))*/
|
||||
}),
|
||||
message: tmp.params[1],
|
||||
time: ~~(Date.now() / 1000),
|
||||
|
@ -1,5 +1,3 @@
|
||||
import { getLevel } from "../inc/admin";
|
||||
|
||||
import rp from "request-promise-native";
|
||||
import EventEmitter from "events";
|
||||
|
||||
@ -106,12 +104,12 @@ export class tg extends EventEmitter {
|
||||
nick: tmp.from.first_name,
|
||||
username: tmp.from.username,
|
||||
account: tmp.from.id.toString(),
|
||||
level: getLevel("Telegram", {
|
||||
/*level: getLevel("Telegram", {
|
||||
prefix: `${tmp.from.username}!${tmp.from.id}`,
|
||||
nick: tmp.from.first_name,
|
||||
username: tmp.from.username,
|
||||
account: tmp.from.id.toString()
|
||||
})
|
||||
})*/
|
||||
},
|
||||
self: this.server,
|
||||
message: tmp.text,
|
||||
|
Reference in New Issue
Block a user