patch 161f49073844cf414ebd6bd7fdd9fd47ffd36d76
Author: E. Bosch <presidev@AT@gmail.com>
Date: Tue Feb 16 19:44:01 CET 2021
* irc: Return True/False instead of 1/0 in valid_nick()
diff -rN -u old-irgramd/irc.py new-irgramd/irc.py
--- old-irgramd/irc.py 2024-11-23 03:00:22.647932819 +0100
+++ new-irgramd/irc.py 2024-11-23 03:00:22.651932813 +0100
@@ -367,9 +367,9 @@
if len(nick) <= NICK_MAX_LENGTH and nick[0] in VALID_IRC_NICK_FIRST_CHARS:
for x in nick[1:]:
if x not in VALID_IRC_NICK_CHARS:
- return 0
- return 1
- else: return 0
+ return False
+ return True
+ else: return False
def del_from_channels(self, irc, channels=None):
for chan in channels if channels else irc.irc_channels.keys():