Changeset a9b1e0e
- Timestamp:
- 2015-04-06T17:01:55Z (10 years ago)
- Branches:
- master
- Children:
- 0fb32dd, 693aca0
- Parents:
- 8bcd160
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
irc.h
r8bcd160 ra9b1e0e 299 299 void irc_channel_name_strip(char *name); 300 300 int irc_channel_name_cmp(const char *a_, const char *b_); 301 char *irc_channel_name_gen( bee_t *bee, const char *name);301 char *irc_channel_name_gen(irc_t *irc, const char *name); 302 302 gboolean irc_channel_name_hint(irc_channel_t *ic, const char *name); 303 303 void irc_channel_update_ops(irc_channel_t *ic, char *value); -
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.