Changeset d7d677d
- Timestamp:
- 2010-04-14T12:34:39Z (15 years ago)
- Branches:
- master
- Children:
- 003a12b
- Parents:
- d33679e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
irc_commands.c
rd33679e rd7d677d 351 351 352 352 353 #if 0354 353 static void irc_cmd_oper( irc_t *irc, char **cmd ) 355 354 { … … 368 367 } 369 368 369 #if 0 370 370 static void irc_cmd_invite( irc_t *irc, char **cmd ) 371 371 { … … 553 553 } 554 554 555 #if 0556 555 static void irc_cmd_version( irc_t *irc, char **cmd ) 557 556 { 558 irc_send_num( irc, 351, "bitlbee-%s. %s :%s/%s ", BITLBEE_VERSION, irc->myhost, ARCH, CPU ); 557 irc_send_num( irc, 351, "bitlbee-%s. %s :%s/%s ", 558 BITLBEE_VERSION, irc->root->host, ARCH, CPU ); 559 559 } 560 560 561 561 static void irc_cmd_completions( irc_t *irc, char **cmd ) 562 562 { 563 user_t *u = user_find( irc, irc->mynick );564 563 help_t *h; 565 564 set_t *s; 566 565 int i; 567 566 568 irc_ privmsg( irc, u, "NOTICE", irc->nick, "COMPLETIONS ", "OK" );567 irc_send_msg_raw( irc->root, "NOTICE", irc->user->nick, "COMPLETIONS OK" ); 569 568 570 569 for( i = 0; commands[i].command; i ++ ) 571 irc_ privmsg( irc, u, "NOTICE", irc->nick, "COMPLETIONS", commands[i].command );570 irc_send_msg_f( irc->root, "NOTICE", irc->user->nick, "COMPLETIONS %s", commands[i].command ); 572 571 573 572 for( h = global.help; h; h = h->next ) 574 irc_ privmsg( irc, u, "NOTICE", irc->nick, "COMPLETIONS help", h->title );575 576 for( s = irc-> set; s; s = s->next )577 irc_ privmsg( irc, u, "NOTICE", irc->nick, "COMPLETIONS set", s->key );578 579 irc_ privmsg( irc, u, "NOTICE", irc->nick, "COMPLETIONS ", "END" );573 irc_send_msg_f( irc->root, "NOTICE", irc->user->nick, "COMPLETIONS help %s", h->title ); 574 575 for( s = irc->b->set; s; s = s->next ) 576 irc_send_msg_f( irc->root, "NOTICE", irc->user->nick, "COMPLETIONS set %s", s->key ); 577 578 irc_send_msg_raw( irc->root, "NOTICE", irc->user->nick, "COMPLETIONS END" ); 580 579 } 581 580 … … 589 588 irc_send_num( irc, 382, "%s :Rehashing", global.conf_file ); 590 589 } 591 #endif592 590 593 591 static const command_t irc_commands[] = { … … 610 608 { "ns", 1, irc_cmd_nickserv, IRC_CMD_LOGGED_IN }, 611 609 { "away", 0, irc_cmd_away, IRC_CMD_LOGGED_IN }, 610 { "version", 0, irc_cmd_version, IRC_CMD_LOGGED_IN }, 611 { "completions", 0, irc_cmd_completions, IRC_CMD_LOGGED_IN }, 612 { "oper", 2, irc_cmd_oper, IRC_CMD_LOGGED_IN }, 612 613 #if 0 613 { "oper", 2, irc_cmd_oper, IRC_CMD_LOGGED_IN },614 614 { "invite", 2, irc_cmd_invite, IRC_CMD_LOGGED_IN }, 615 615 { "notice", 1, irc_cmd_privmsg, IRC_CMD_LOGGED_IN }, … … 618 618 { "watch", 1, irc_cmd_watch, IRC_CMD_LOGGED_IN }, 619 619 { "topic", 1, irc_cmd_topic, IRC_CMD_LOGGED_IN }, 620 { "version", 0, irc_cmd_version, IRC_CMD_LOGGED_IN }, 621 { "completions", 0, irc_cmd_completions, IRC_CMD_LOGGED_IN }, 620 #endif 622 621 { "die", 0, NULL, IRC_CMD_OPER_ONLY | IRC_CMD_TO_MASTER }, 623 622 { "deaf", 0, NULL, IRC_CMD_OPER_ONLY | IRC_CMD_TO_MASTER }, … … 627 626 { "restart", 0, NULL, IRC_CMD_OPER_ONLY | IRC_CMD_TO_MASTER }, 628 627 { "kill", 2, NULL, IRC_CMD_OPER_ONLY | IRC_CMD_TO_MASTER }, 629 #endif630 628 { NULL } 631 629 };
Note: See TracChangeset
for help on using the changeset viewer.