@@ -48,8 +48,8 @@ class NickAuth(callbacks.Plugin):
4848 This plugin allows users to use their network services account to
4949 authenticate to the bot.
5050
51- They first have to use ``@nickauth nick add <the nick >`` while being
52- identified to the bot and then use ``@auth`` when they want to
51+ They first have to use ``@nickauth nick add <account name >`` while being
52+ identified to the bot, and then use ``@auth`` when they want to
5353 identify to the bot.
5454 """
5555
@@ -59,24 +59,24 @@ def __init__(self, irc):
5959 class nick (callbacks .Commands ):
6060 def _check_auth (self , irc , msg , user ):
6161 if user is None :
62- irc .error (_ ('You are not authenticated .' ), Raise = True )
62+ irc .error (_ ('You are not logged in to the bot .' ), Raise = True )
6363 if not user .checkHostmask (msg .prefix ):
6464 try :
6565 u = ircdb .users .getUser (msg .prefix )
6666 except KeyError :
67- irc .error (_ ('You are not authenticated .' ),
67+ irc .error (_ ('You are not logged in to the bot .' ),
6868 Raise = True )
6969 if not u ._checkCapability ('owner' ):
7070 irc .error (_ ('You must be owner to do that.' ),
7171 Raise = True )
7272
7373 @internationalizeDocstring
7474 def add (self , irc , msg , args , network , user , nick ):
75- """[<network>] <user> <nick >
75+ """[<network>] [<bot username>] <account >
7676
77- Add <nick > to the list of nicks owned by the <user> on the
78- <network>. You have to register this nick to the network
79- services to be authenticated .
77+ Add <account > to the list of network services accounts owned by
78+ <bot username> on < network>. <bot username> is only required if you
79+ are not already logged in to Limnoria .
8080 <network> defaults to the current network.
8181 """
8282 network = network .network or irc .network
@@ -85,19 +85,20 @@ def add(self, irc, msg, args, network, user, nick):
8585 try :
8686 user .addNick (network , nick )
8787 except KeyError :
88- irc .error (_ ('This nick is already used by someone on this '
89- ' network.' ), Raise = True )
88+ irc .error (_ ('This services account is already used by someone '
89+ 'on this network.' ), Raise = True )
9090 irc .replySuccess ()
9191 add = wrap (add , [optional ('networkIrc' ),
9292 optional ('otherUser' ),
9393 'nick' ])
9494
9595 @internationalizeDocstring
9696 def remove (self , irc , msg , args , network , user , nick ):
97- """[<network>] <user> <nick >
97+ """[<network>] [<bot username>] <account >
9898
99- Remove <nick> from the list of nicks owned by the <user> on the
100- <network>.
99+ Remove <account> from the list of network services accounts owned by
100+ <bot username> on <network>. <bot username> is only required if you
101+ are not already logged in to Limnoria.
101102 <network> defaults to the current network.
102103 """
103104 network = network .network or irc .network
@@ -106,18 +107,19 @@ def remove(self, irc, msg, args, network, user, nick):
106107 try :
107108 user .removeNick (network , nick )
108109 except KeyError :
109- irc .error (_ ('This nick is not registered to you on this '
110- ' network.' ), Raise = True )
110+ irc .error (_ ('This services account is not registered to you on '
111+ 'this network.' ), Raise = True )
111112 irc .replySuccess ()
112113 remove = wrap (remove , [optional ('networkIrc' ),
113114 optional ('otherUser' ),
114115 'nick' ])
115116
116117 @internationalizeDocstring
117118 def list (self , irc , msg , args , network , user ):
118- """[<network>] [<user >]
119+ """[<network>] [<bot username >]
119120
120- Lists nicks of the <user> on the network.
121+ Lists services accounts registered to <bot username> on the network,
122+ or your own bot account if no username is given.
121123 <network> defaults to the current network.
122124 """
123125 network = network .network or irc .network
@@ -135,11 +137,11 @@ def list(self, irc, msg, args, network, user):
135137 raise KeyError
136138 except KeyError :
137139 if user == ircdb .users .getUser (msg .prefix ):
138- irc .error (_ ('You have no recognized nick on this '
139- ' network.' ), Raise = True )
140+ irc .error (_ ('You have no recognized services accounts on '
141+ 'this network.' ), Raise = True )
140142 else :
141- irc .error (_ ('%s has no recognized nick on this '
142- 'network.' ) % user .name , Raise = True )
143+ irc .error (_ ('%s has no recognized services accounts on this '
144+ 'network.' ) % user .name , Raise = True )
143145 list = wrap (list , [optional ('networkIrc' ),
144146 optional ('otherUser' )])
145147
@@ -148,7 +150,7 @@ def auth(self, irc, msg, args):
148150 """takes no argument
149151
150152 Tries to authenticate you using network services.
151- If you get no reply, it means you are not authenticated to the
153+ If you get no reply, it means you are not authenticated to
152154 network services."""
153155 nick = ircutils .toLower (msg .nick )
154156 self ._requests [(irc .network , msg .nick )] = (time .time (), msg .prefix , irc )
@@ -183,7 +185,7 @@ def do330(self, irc, msg):
183185 ircdb .users .setUser (user , flush = False )
184186 irc .reply (_ ('You are now authenticated as %s.' ) % user .name )
185187 else :
186- irc .error (_ ('No user claimed the nick %s on this network. '
188+ irc .error (_ ('No user claimed the account %s on this network. '
187189 'If this is you, you should connect with an other '
188190 'method and use the "nickauth nick add" command, '
189191 'or ask the owner of the bot to do it.' )
0 commit comments