comparison mcabber/src/utils.c @ 1292:382ec54b584e

Muc nick coloring functionality
author Michal 'vorner' Vaner <vorner@ucw.cz>
date Tue, 28 Aug 2007 10:11:39 +0200
parents 3a4018f18bdf
children 0562106d20c1
comparison
equal deleted inserted replaced
1291:9f64f548ac16 1292:382ec54b584e
315 * really convenient for our usage. 315 * really convenient for our usage.
316 * 316 *
317 * Check if the full JID is valid 317 * Check if the full JID is valid
318 * Return 0 if it is valid, non zero otherwise 318 * Return 0 if it is valid, non zero otherwise
319 */ 319 */
320 int check_jid_syntax(char *fjid) 320 int check_jid_syntax(const char *fjid)
321 { 321 {
322 char *str; 322 const char *str;
323 char *domain, *resource; 323 const char *domain, *resource;
324 int domlen; 324 int domlen;
325 325
326 if (!fjid) return 1; 326 if (!fjid) return 1;
327 327
328 domain = strchr(fjid, JID_DOMAIN_SEPARATOR); 328 domain = strchr(fjid, JID_DOMAIN_SEPARATOR);