Changeset a9b1e0e for irc_channel.c
- Timestamp:
- 2015-04-06T17:01:55Z (10 years ago)
- Branches:
- master
- Children:
- 0fb32dd, 693aca0
- Parents:
- 8bcd160
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
irc_channel.c
r8bcd160 ra9b1e0e 556 556 } 557 557 558 gboolean irc_channel_is_unused( bee_t *bee, char *name)558 gboolean irc_channel_is_unused(irc_t *irc, char *name) 559 559 { 560 560 char *type, *chat_type; … … 565 565 } 566 566 567 if (!(oic = irc_channel_by_name( bee->ui_data, name))) {567 if (!(oic = irc_channel_by_name(irc, name))) { 568 568 return TRUE; 569 569 } … … 586 586 } 587 587 588 char *irc_channel_name_gen( bee_t *bee, const char *hint)588 char *irc_channel_name_gen(irc_t *irc, const char *hint) 589 589 { 590 590 char name[MAX_NICK_LENGTH + 1] = { 0 }; … … 605 605 irc_channel_name_strip(name); 606 606 607 if (set_getbool(& bee->set, "lcnicks")) {608 nick_lc( bee->ui_data, name + 1);609 } 610 611 while (!irc_channel_is_unused( bee, name)) {607 if (set_getbool(&irc->b->set, "lcnicks")) { 608 nick_lc(irc, name + 1); 609 } 610 611 while (!irc_channel_is_unused(irc, name)) { 612 612 underscore_dedupe(name); 613 613 } … … 626 626 } 627 627 628 if (!(full_name = irc_channel_name_gen(irc ->b, name))) {628 if (!(full_name = irc_channel_name_gen(irc, name))) { 629 629 return FALSE; 630 630 }
Note: See TracChangeset
for help on using the changeset viewer.