From 1c06dff8d0615dde98024f06dbd0ce7d73816a05 Mon Sep 17 00:00:00 2001 From: swee Date: Wed, 29 Jan 2025 21:55:57 -0800 Subject: [PATCH] Update modules/pawserv.py --- modules/pawserv.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/pawserv.py b/modules/pawserv.py index e10088a..38d980c 100644 --- a/modules/pawserv.py +++ b/modules/pawserv.py @@ -58,6 +58,17 @@ class IRCatModule: connection.sendall(bytes(f":NickServ!Meow@PawServ NOTICE {nick} :Nickname doesn't exist, try registering again?\r\n", "UTF-8")) else: connection.sendall(bytes(f":NickServ!Meow@PawServ NOTICE {nick} :Invalid verification.\r\n", "UTF-8")) + elif len(args) > 0 and args[0].lower() == "group": + if len(args) == 1: + if user["identified"]: + if not self.sql.nickserv_isexist(nick.lower()): + self.sql.nickserv_group(nick, user["identusername"]) + else: + connection.sendall(bytes(f":NickServ!Meow@PawServ NOTICE {nick} :Nickname {nick} already exists.\r\n", "UTF-8")) + else: + connection.sendall(bytes(f":NickServ!Meow@PawServ NOTICE {nick} :You are not logged in.\r\n", "UTF-8")) + else: + connection.sendall(bytes(f":NickServ!Meow@PawServ NOTICE {nick} :Does not requre arguments\r\n", "UTF-8")) elif len(args) > 0 and args[0].lower() == "register": if len(args) == 3: if not self.sql.nickserv_isexist(nick.lower()):