mirror of
https://git.sr.ht/~emersion/gamja
synced 2024-11-14 19:25:26 -05:00
Remove unnecessary if in /ban
If whois info is unavailable, the promise is rejected.
This commit is contained in:
parent
a6cdd64444
commit
e90c07e64e
1 changed files with 0 additions and 3 deletions
|
@ -27,9 +27,6 @@ const ban = {
|
|||
}
|
||||
const client = getActiveClient(app);
|
||||
client.whois(nick).then((whois) => {
|
||||
if (whois === null) {
|
||||
throw new Error("No such nick");
|
||||
};
|
||||
const info = whois[irc.RPL_WHOISUSER].params;
|
||||
const user = info[2];
|
||||
const host = info[3];
|
||||
|
|
Loading…
Reference in a new issue