kokoirc 0.2.5 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kokoirc",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "description": "Modern terminal IRC client with inline image preview, SASL, scripting, encrypted logging, and theming — built with OpenTUI, React, and Bun",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -19,7 +19,8 @@ function isChannelTarget(target: string): boolean {
19
19
  function getListModes(connectionId: string): Set<string> {
20
20
  const conn = useStore.getState().connections.get(connectionId)
21
21
  const chanmodes = conn?.isupport?.CHANMODES
22
- if (chanmodes) return new Set(chanmodes.split(",")[0])
22
+ if (Array.isArray(chanmodes) && chanmodes[0]) return new Set(chanmodes[0].split(""))
23
+ if (typeof chanmodes === "string") return new Set(chanmodes.split(",")[0])
23
24
  return new Set(["b", "e", "I", "R"])
24
25
  }
25
26