Changes in irc_channel.c [25f6151:24de9fa]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
irc_channel.c
r25f6151 r24de9fa 213 213 } 214 214 215 /* Skip the free/init if nothing is being changed */216 if (ic->f == new) {217 return value;218 }219 220 215 /* TODO: Return values. */ 221 216 if (ic->f && ic->f->_free) { … … 260 255 261 256 if (!(icu = irc_channel_has_user(ic, iu))) { 262 if (iu == ic->irc->user && type == IRC_CDU_KICK) {263 /* an error happened before joining, inform the client with a numeric */264 irc_send_num(ic->irc, 403, "%s :Error joining channel (check control channel?)", ic->name);265 }266 257 return 0; 267 258 } … … 436 427 changes); 437 428 } 438 }439 440 char irc_channel_user_get_prefix(irc_channel_user_t *icu)441 {442 if (icu->flags & IRC_CHANNEL_USER_OP) {443 return '@';444 } else if (icu->flags & IRC_CHANNEL_USER_HALFOP) {445 return '%';446 } else if (icu->flags & IRC_CHANNEL_USER_VOICE) {447 return '+';448 }449 return 0;450 429 } 451 430 … … 614 593 615 594 translit_name = g_convert_with_fallback(hint, -1, "ASCII//TRANSLIT", "UTF-8", "", NULL, &bytes_written, NULL); 616 617 if (!translit_name) {618 /* Same thing as in nick_gen() in nick.c, try again without //TRANSLIT */619 translit_name = g_convert_with_fallback(hint, -1, "ASCII", "UTF-8", "", NULL, &bytes_written, NULL);620 }621 622 if (!translit_name) {623 return NULL;624 }625 626 595 if (bytes_written > MAX_NICK_LENGTH) { 627 596 translit_name[MAX_NICK_LENGTH] = '\0';
Note: See TracChangeset
for help on using the changeset viewer.