Changeset c133d4b8
- Timestamp:
- 2010-06-05T01:06:26Z (15 years ago)
- Branches:
- master
- Children:
- cf1a979
- Parents:
- 7e83e8e4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
root_commands.c
r7e83e8e4 rc133d4b8 486 486 } 487 487 488 static set_t **cmd_channel_set_findhead( irc_t *irc, char *id ) 489 { 490 irc_channel_t *ic; 491 492 if( ( ic = irc_channel_by_name( irc, id ) ) ) 493 return &ic->set; 494 else 495 return NULL; 496 } 497 498 static void cmd_channel( irc_t *irc, char **cmd ) 499 { 500 if( g_strcasecmp( cmd[1], "set" ) == 0 ) 501 { 502 MIN_ARGS( 2 ); 503 504 cmd_set_real( irc, cmd + 1, cmd_channel_set_findhead, NULL ); 505 } 506 else 507 { 508 irc_usermsg( irc, "Unknown command: %s %s. Please use \x02help commands\x02 to get a list of available commands.", "channel", cmd[1] ); 509 } 510 } 511 488 512 static void cmd_add( irc_t *irc, char **cmd ) 489 513 { … … 943 967 { 944 968 account_t *acc; 945 struct chat *c;946 969 947 970 if( g_strcasecmp( cmd[1], "add" ) == 0 ) … … 1081 1104 { "blist", 0, cmd_blist, 0 }, 1082 1105 { "block", 1, cmd_block, 0 }, 1106 { "channel", 1, cmd_channel, 0 }, 1107 { "chat", 1, cmd_chat, 0 }, 1083 1108 { "drop", 1, cmd_drop, 0 }, 1084 1109 { "ft", 0, cmd_transfer, 0 }, … … 1095 1120 { "transfer", 0, cmd_transfer, 0 }, 1096 1121 { "yes", 0, cmd_yesno, 0 }, 1097 { "chat", 1, cmd_chat, 0 },1098 1122 { NULL } 1099 1123 };
Note: See TracChangeset
for help on using the changeset viewer.