3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-24 11:42:51 +01:00

bots: PseudoClient->client in help text & error messages

This commit is contained in:
James Lu 2016-11-18 23:13:56 -08:00
parent d467d27ecd
commit c77ad6faa9

View File

@ -9,7 +9,7 @@ from pylinkirc.log import log
def spawnclient(irc, source, args): def spawnclient(irc, source, args):
"""<nick> <ident> <host> """<nick> <ident> <host>
Admin-only. Spawns the specified PseudoClient on the PyLink server. Admin-only. Spawns the specified client on the PyLink server.
Note: this doesn't check the validity of any fields you give it!""" Note: this doesn't check the validity of any fields you give it!"""
irc.checkAuthenticated(source, allowOper=False) irc.checkAuthenticated(source, allowOper=False)
try: try:
@ -32,7 +32,7 @@ def quit(irc, source, args):
irc.error("Not enough arguments. Needs 1-2: nick, reason (optional).") irc.error("Not enough arguments. Needs 1-2: nick, reason (optional).")
return return
if irc.pseudoclient.uid == irc.nickToUid(nick): if irc.pseudoclient.uid == irc.nickToUid(nick):
irc.error("Cannot quit the main PyLink PseudoClient!") irc.error("Cannot quit the main PyLink client!")
return return
u = irc.nickToUid(nick) u = irc.nickToUid(nick)