/[weechat]/weechat/src/irc/irc-commands.c
ViewVC logotype

Diff of /weechat/src/irc/irc-commands.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7 by flashcode, Sat Oct 4 10:47:13 2003 UTC revision 1.8 by flashcode, Sat Oct 4 12:15:58 2003 UTC
# Line 145  t_irc_command irc_commands[] = Line 145  t_irc_command irc_commands[] =
145      N_("data"),      N_("data"),
146      N_("data: raw data to send"),      N_("data: raw data to send"),
147      1, MAX_ARGS, 1, NULL, irc_cmd_send_quote, NULL },      1, MAX_ARGS, 1, NULL, irc_cmd_send_quote, NULL },
148      { "rehash", N_("tell the server to reload its config file"),
149        "", "",
150        0, 0, 1, NULL, irc_cmd_send_rehash, NULL },
151      { "restart", N_("tell the server to restart itself"),
152        "", "",
153        0, 0, 1, NULL, irc_cmd_send_restart, NULL },
154    { "topic", N_("get/set channel topic"),    { "topic", N_("get/set channel topic"),
155      N_("[channel] [topic]"), N_("channel: channel name\ntopic: new topic for channel "      N_("[channel] [topic]"), N_("channel: channel name\ntopic: new topic for channel "
156      "(if topic is \"-delete\" then topic is deleted)"),      "(if topic is \"-delete\" then topic is deleted)"),
# Line 961  irc_cmd_send_quote (t_irc_server *server Line 967  irc_cmd_send_quote (t_irc_server *server
967      return 0;      return 0;
968  }  }
969    
970    /*
971     * irc_cmd_send_rehash: tell the server to reload its config file
972     */
973    
974    int
975    irc_cmd_send_rehash (t_irc_server *server, char *arguments)
976    {
977        /* make gcc happy */
978        (void) arguments;
979        
980        server_sendf (server, "REHASH\r\n");
981        return 0;
982    }
983    
984    /*
985     * irc_cmd_send_restart: tell the server to restart itself
986     */
987    
988    int
989    irc_cmd_send_restart (t_irc_server *server, char *arguments)
990    {
991        /* make gcc happy */
992        (void) arguments;
993        
994        server_sendf (server, "RESTART\r\n");
995        return 0;
996    }
997    
998  /*  /*
999   * irc_cmd_send_topic: get/set topic for a channel   * irc_cmd_send_topic: get/set topic for a channel
1000   */   */

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26