diff --git a/lib/server/router.ml b/lib/server/router.ml index c11decd..fafc840 100644 --- a/lib/server/router.ml +++ b/lib/server/router.ml @@ -8,6 +8,7 @@ type t = { and user = { outbox : Outbox.t; userinfo : Irc.userinfo; + mutable mode : Irc.Mode.Set.t; mutable nick : Irc.name; mutable nick_key : string_ci; mutable membership : membership Dllist.t; @@ -71,12 +72,13 @@ module User = struct userinfo; nick = "*"; nick_key = empty_string_ci; - (* mode = "+iw"; *) + mode = Irc.Mode.Set.of_list [`i; `w]; membership = Dllist.create (); } let outbox t = t.outbox let nick t = t.nick + let mode t = t.mode let prefix = user_prefix (* let is_registered t = t.nick_key <> empty_string_ci *)