Changeset b78c4b9
- Timestamp:
- 2010-08-27T04:22:50Z (14 years ago)
- Branches:
- master
- Children:
- 00374ac
- Parents:
- ea728e6 (diff), 3f10fad (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/user-guide/commands.xml
rea728e6 rb78c4b9 1464 1464 </bitlbee-command> 1465 1465 1466 <bitlbee-command name="transfer s">1466 <bitlbee-command name="transfer"> 1467 1467 <short-description>Monitor, cancel, or reject file transfers</short-description> 1468 <syntax>transfer s[<cancel> id | <reject>]</syntax>1468 <syntax>transfer [<cancel> id | <reject>]</syntax> 1469 1469 1470 1470 <description> 1471 1471 <para> 1472 Without parameters the currently pending file transfers and their status will be listed. Available actions are <emphasis>cancel</emphasis> and <emphasis>reject</emphasis>. See <emphasis>help transfer s<action></emphasis> for more information.1472 Without parameters the currently pending file transfers and their status will be listed. Available actions are <emphasis>cancel</emphasis> and <emphasis>reject</emphasis>. See <emphasis>help transfer <action></emphasis> for more information. 1473 1473 </para> 1474 1474 1475 1475 <ircexample> 1476 <ircline nick="ulim">transfer s</ircline>1476 <ircline nick="ulim">transfer</ircline> 1477 1477 </ircexample> 1478 1478 </description> … … 1480 1480 <bitlbee-command name="cancel"> 1481 1481 <short-description>Cancels the file transfer with the given id</short-description> 1482 <syntax>transfer s<cancel> id</syntax>1482 <syntax>transfer <cancel> id</syntax> 1483 1483 1484 1484 <description> … … 1487 1487 1488 1488 <ircexample> 1489 <ircline nick="ulim">transfer scancel 1</ircline>1489 <ircline nick="ulim">transfer cancel 1</ircline> 1490 1490 <ircline nick="root">Canceling file transfer for test</ircline> 1491 1491 </ircexample> … … 1494 1494 <bitlbee-command name="reject"> 1495 1495 <short-description>Rejects all incoming transfers</short-description> 1496 <syntax>transfer s<reject></syntax>1496 <syntax>transfer <reject></syntax> 1497 1497 1498 1498 <description> … … 1501 1501 1502 1502 <ircexample> 1503 <ircline nick="ulim">transfer sreject</ircline>1503 <ircline nick="ulim">transfer reject</ircline> 1504 1504 </ircexample> 1505 1505 </bitlbee-command> -
irc_commands.c
rea728e6 rb78c4b9 302 302 char *channel = cmd[1]; 303 303 irc_channel_t *ic; 304 irc_user_t *iu; 304 305 305 306 if( !channel || *channel == '0' || *channel == '*' || !*channel ) … … 307 308 else if( ( ic = irc_channel_by_name( irc, channel ) ) ) 308 309 irc_send_who( irc, ic->users, channel ); 310 else if( ( iu = irc_user_by_name( irc, channel ) ) ) 311 { 312 /* Tiny hack! */ 313 GSList *l = g_slist_append( NULL, iu ); 314 irc_send_who( irc, l, channel ); 315 g_slist_free( l ); 316 } 309 317 else 310 318 irc_send_num( irc, 403, "%s :No such channel", channel ); -
irc_send.c
rea728e6 rb78c4b9 264 264 void irc_send_who( irc_t *irc, GSList *l, const char *channel ) 265 265 { 266 gboolean is_channel = strc mp( channel, "**" ) != 0;266 gboolean is_channel = strchr( CTYPES, channel[0] ) != NULL; 267 267 268 268 while( l ) … … 273 273 /* TODO(wilmer): Restore away/channel information here */ 274 274 irc_send_num( irc, 352, "%s %s %s %s %s %c :0 %s", 275 channel ?: "*", iu->user, iu->host, irc->root->host,275 is_channel ? channel : "*", iu->user, iu->host, irc->root->host, 276 276 iu->nick, iu->flags & IRC_USER_AWAY ? 'G' : 'H', 277 277 iu->fullname ); -
root_commands.c
rea728e6 rb78c4b9 1284 1284 } 1285 1285 1286 static void cmd_nick( irc_t *irc, char **cmd ) 1287 { 1288 irc_usermsg( irc, "This command is deprecated. Try: account %s set display_name", cmd[1] ); 1289 } 1290 1286 1291 /* Maybe this should be a stand-alone command as well? */ 1287 1292 static void bitlbee_whatsnew( irc_t *irc ) … … 1338 1343 { "identify", 1, cmd_identify, 0 }, 1339 1344 { "info", 1, cmd_info, 0 }, 1345 { "nick", 1, cmd_nick, 0 }, 1340 1346 { "no", 0, cmd_yesno, 0 }, 1341 1347 { "qlist", 0, cmd_qlist, 0 },
Note: See TracChangeset
for help on using the changeset viewer.