self.purge_users()
-class _NickUserHost(NickUserHost):
+class _SetNickuserhostMixin:
def __setattr__(self, key: str, value: NickUserHost | str) -> None:
if key == 'nickuserhost' and isinstance(value, NickUserHost):
else:
super().__setattr__(key, value)
+
+class _NickUserHost(NickUserHost):
+
@staticmethod
def possible_from(value: str) -> bool:
'If class instance could be parsed from value.'
return name + str(0 if not digits else (int(digits) + 1))
-class _User(_NickUserHost):
+class _User(_SetNickuserhostMixin, NickUserHost):
modes: str = '?'
exit_msg: str = ''