* Remove all related to nickserv scope

* Remove Client from the loader (nickserv like)

* Fix issues coming from the feedback of dktmb
This commit is contained in:
adator
2025-12-16 01:00:36 +01:00
committed by GitHub
parent 54ea946da0
commit 91210f96ec
13 changed files with 71 additions and 567 deletions

View File

@@ -8,7 +8,7 @@ from core.classes.interfaces.iprotocol import IProtocol
from core.utils import tr
if TYPE_CHECKING:
from core.definition import MSasl, MClient, MUser, MChannel
from core.definition import MSasl, MUser, MChannel
class Inspircd(IProtocol):
@@ -562,7 +562,6 @@ class Inspircd(IProtocol):
uid = str(scopy[0]).replace(':','')
newnickname = scopy[2]
self._ctx.User.update_nickname(uid, newnickname)
self._ctx.Client.update_nickname(uid, newnickname)
self._ctx.Admin.update_nickname(uid, newnickname)
return None
@@ -1334,15 +1333,12 @@ class Inspircd(IProtocol):
client_uid (str): Client UID
user_account (str): The account of the user
"""
...
pass
async def send_svslogout(self, client_obj: 'MClient') -> None:
async def send_svslogout(self) -> None:
"""Logout a client from his account
Args:
client_obj (MClient): The Client Object Model
"""
...
pass
async def send_svsmode(self, nickname: str, user_mode: str) -> None:
"""_summary_