1
0
forked from keinBot/cuffeo

irgendwas mit overhaul

This commit is contained in:
Flummi
2019-08-22 22:05:18 +00:00
parent acf7ac3d49
commit 0d45670ae4
14 changed files with 132 additions and 174 deletions

View File

@@ -1,8 +1,8 @@
export default client => {
client._cmd.set("NICK", function (msg) { // nickchange
let prefix = this.parsePrefix(msg.prefix);
if (this.server.user.hasi(prefix.nick))
this.server.user.deli(prefix.nick);
this.whois(msg.params[0], true); // force
}.bind(client));
export default bot => {
bot._cmd.set("NICK", msg => { // nickchange
let prefix = bot.parsePrefix(msg.prefix);
if (bot.server.user.has(prefix.nick))
bot.server.user.del(prefix.nick);
bot.whois(msg.params[0], true); // force
});
};