typescript schmypescript
This commit is contained in:
8
dist/clients/irc/nick.js
vendored
Normal file
8
dist/clients/irc/nick.js
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
export default (bot) => {
|
||||
bot._cmd.set("NICK", (msg) => {
|
||||
const prefix = bot.parsePrefix(msg.prefix);
|
||||
if (bot.server.user.has(prefix.nick))
|
||||
bot.server.user.delete(prefix.nick);
|
||||
bot.whois(msg.params[0], true);
|
||||
});
|
||||
};
|
Reference in New Issue
Block a user