2014-01-12 03:14:16 -05:00
|
|
|
# Hardcoded messages that NickServ sends and what to display to the user instead
|
|
|
|
|
|
|
|
messages = {
|
2022-10-07 16:51:40 -04:00
|
|
|
"Your nick isn't registered.": "", # display the same
|
|
|
|
"Password accepted - you are now recognized.": "", # display the same
|
|
|
|
"If you do not change within one minute, I will change your nick.": "You have 1 minute to identify.",
|
|
|
|
"If you do not change within 20 seconds, I will change your nick.": "You have 20 seconds to identify.",
|
2014-01-12 03:14:16 -05:00
|
|
|
}
|
|
|
|
|
2022-10-07 16:51:40 -04:00
|
|
|
|
2014-01-12 03:14:16 -05:00
|
|
|
def translate(msg):
|
|
|
|
if msg in messages:
|
|
|
|
if messages[msg] == "":
|
|
|
|
return msg
|
|
|
|
return messages[msg]
|
|
|
|
return None
|