Changeset d7f8500 for irc_commands.c
- Timestamp:
- 2010-06-30T23:01:33Z (14 years ago)
- Branches:
- master
- Children:
- 9052bc1
- Parents:
- 217bf4e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
irc_commands.c
r217bf4e rd7f8500 332 332 irc_send_num( irc, 401, "%s :No such nick/channel", cmd[1] ); 333 333 } 334 } 335 336 static void irc_cmd_notice( irc_t *irc, char **cmd ) 337 { 338 if( !cmd[2] ) 339 { 340 irc_send_num( irc, 412, ":No text to send" ); 341 return; 342 } 343 344 /* At least for now just echo. IIRC some IRC clients use self-notices 345 for lag checks, so try to support that. */ 346 if( nick_cmp( cmd[1], irc->user->nick ) == 0 ) 347 irc_send_msg( irc->user, "NOTICE", irc->user->nick, cmd[2], NULL ); 334 348 } 335 349 … … 603 617 { "who", 0, irc_cmd_who, IRC_CMD_LOGGED_IN }, 604 618 { "privmsg", 1, irc_cmd_privmsg, IRC_CMD_LOGGED_IN }, 619 { "notice", 1, irc_cmd_notice, IRC_CMD_LOGGED_IN }, 605 620 { "nickserv", 1, irc_cmd_nickserv, IRC_CMD_LOGGED_IN }, 606 621 { "ns", 1, irc_cmd_nickserv, IRC_CMD_LOGGED_IN }, … … 612 627 { "watch", 1, irc_cmd_watch, IRC_CMD_LOGGED_IN }, 613 628 { "invite", 2, irc_cmd_invite, IRC_CMD_LOGGED_IN }, 614 #if 0615 { "notice", 1, irc_cmd_privmsg, IRC_CMD_LOGGED_IN },616 #endif617 629 { "topic", 1, irc_cmd_topic, IRC_CMD_LOGGED_IN }, 618 630 { "oper", 2, irc_cmd_oper, IRC_CMD_LOGGED_IN },
Note: See TracChangeset
for help on using the changeset viewer.