state: fix prefix() call in MODE handler

Lost during a refactoring.

Fixes: ab3d4dd661 ("Refactor ISUPPORT handling")
This commit is contained in:
Simon Ser 2021-12-16 23:37:33 +01:00
parent 4704e0f12f
commit b11f58b975

View file

@ -560,7 +560,7 @@ export const State = {
return; // TODO: handle user mode changes too return; // TODO: handle user mode changes too
} }
let prefix = client.prefix(); let prefix = client.isupport.prefix();
let prefixByMode = new Map(irc.parseMembershipModes(prefix).map((membership) => { let prefixByMode = new Map(irc.parseMembershipModes(prefix).map((membership) => {
return [membership.mode, membership.prefix]; return [membership.mode, membership.prefix];
})); }));