Changeset 4f22a68c
- Timestamp:
- 2010-07-18T20:12:55Z (14 years ago)
- Branches:
- master
- Children:
- 94d5da9c
- Parents:
- 3e59c8d
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/user-guide/commands.xml
r3e59c8d r4f22a68c 211 211 212 212 <bitlbee-command name="set"> 213 <syntax>channel <channel id>set</syntax>214 <syntax>channel <channel id>set <setting></syntax>215 <syntax>channel <channel id>set <setting> <value></syntax>216 <syntax>channel <channel id>set -del <setting></syntax>213 <syntax>channel [<channel id>] set</syntax> 214 <syntax>channel [<channel id>] set <setting></syntax> 215 <syntax>channel [<channel id>] set <setting> <value></syntax> 216 <syntax>channel [<channel id>] set -del <setting></syntax> 217 217 218 218 <description> … … 226 226 227 227 <para> 228 The channel ID can be a number (see <emphasis>channel list</emphasis>), or (part of) its name, as long as it matches only one channel. 228 The channel ID can be a number (see <emphasis>channel list</emphasis>), or (part of) its name, as long as it matches only one channel. If you want to change settings of the current channel, you can omit the channel ID. 229 229 </para> 230 230 </description> -
root_commands.c
r3e59c8d r4f22a68c 550 550 } 551 551 552 if( ( ic = irc_channel_get( irc, cmd[1] ) ) == NULL ) 553 { 554 /* If this doesn't match any channel, maybe this is the short 555 syntax (only works when used inside a channel). */ 556 if( ( len = strlen( cmd[1] ) ) && 557 g_strncasecmp( cmd[1], "set", len ) == 0 && 558 ( ic = irc_channel_by_name( irc, irc->last_root_cmd ) ) ) 559 cmd_set_real( irc, cmd + 1, &ic->set, NULL ); 560 else 561 irc_usermsg( irc, "Could not find channel `%s'", cmd[1] ); 562 563 return; 564 } 565 552 566 MIN_ARGS( 2 ); 553 567 len = strlen( cmd[2] ); 554 555 if( ( ic = irc_channel_get( irc, cmd[1] ) ) == NULL )556 {557 irc_usermsg( irc, "Could not find channel `%s'", cmd[1] );558 return;559 }560 568 561 569 if( len >= 1 && g_strncasecmp( cmd[2], "set", len ) == 0 )
Note: See TracChangeset
for help on using the changeset viewer.