Changeset bedad20
- Timestamp:
- 2010-11-24T22:32:12Z (14 years ago)
- Branches:
- master
- Children:
- b11b781
- Parents:
- 9564e55
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/user-guide/commands.xml
r9564e55 rbedad20 17 17 18 18 <bitlbee-command name="add"> 19 <syntax>account add <protocol> <username> <password></syntax>19 <syntax>account add <protocol> <username> [<password>]</syntax> 20 20 21 21 <description> … … 23 23 Adds an account on the given server with the specified protocol, username and password to the account list. Supported protocols right now are: Jabber, MSN, OSCAR (AIM/ICQ), Yahoo and Twitter. For more information about adding an account, see <emphasis>help account add <protocol></emphasis>. 24 24 </para> 25 26 <para> 27 If you omit the password, you should use the IRC /OPER command to enter it separately. The advantage of this approach is that most IRC clients will not show OPER passwords on screen/save them in logs. 28 </para> 25 29 </description> 26 30 27 31 <bitlbee-command name="jabber"> 28 <syntax>account add jabber <handle@server.tld> <password></syntax>32 <syntax>account add jabber <handle@server.tld> [<password>]</syntax> 29 33 30 34 <description> … … 40 44 41 45 <bitlbee-command name="msn"> 42 <syntax>account add msn <handle@server.tld> <password></syntax>46 <syntax>account add msn <handle@server.tld> [<password>]</syntax> 43 47 44 48 <description> … … 50 54 51 55 <bitlbee-command name="oscar"> 52 <syntax>account add oscar <handle> <password></syntax>56 <syntax>account add oscar <handle> [<password>]</syntax> 53 57 54 58 <description> … … 65 69 66 70 <bitlbee-command name="twitter"> 67 <syntax>account add twitter <handle> <password></syntax>71 <syntax>account add twitter <handle> [<password>]</syntax> 68 72 69 73 <description> … … 87 91 88 92 <bitlbee-command name="yahoo"> 89 <syntax>account add yahoo <handle> <password></syntax>93 <syntax>account add yahoo <handle> [<password>]</syntax> 90 94 91 95 <description> -
irc_commands.c
r9564e55 rbedad20 409 409 { 410 410 set_setstr( &a->set, "password", cmd[2] ); 411 irc_usermsg( irc, "Password added to IM account " 412 "%s(%s)", a->prpl->name, a->user ); 413 /* The IRC client may expect this. Report failure since 414 we didn't hand out a +o. */ 415 irc_send_num( irc, 491, ":Password added to IM account " 416 "%s(%s)", a->prpl->name, a->user ); 411 417 return; 412 418 } … … 422 428 else 423 429 { 424 irc_send_num( irc, 4 32, ":Incorrect password" );430 irc_send_num( irc, 491, ":Incorrect password" ); 425 431 } 426 432 } -
root_commands.c
r9564e55 rbedad20 427 427 } 428 428 429 irc_usermsg( irc, "Account successfully added" ); 430 431 if( cmd[4] == NULL ) 432 irc_usermsg( irc, "Now, use /OPER to enter your password for this account" ); 429 irc_usermsg( irc, "Account successfully added%s", cmd[4] ? "" : 430 ", now use /OPER to enter the password" ); 433 431 434 432 return;
Note: See TracChangeset
for help on using the changeset viewer.