Commit c69abac4 authored by Marc Dequènes (Duck)'s avatar Marc Dequènes (Duck)

[fix] preserve spaces in nicks using undescores to improve readability

parent 355670f4
......@@ -70,7 +70,9 @@ string Nick::nickize(const string& n)
gchar* conv = g_convert_with_iconv(n.c_str(), n.size(), ic, NULL, NULL, NULL);
for(const char* c = conv ? conv : n.c_str(); *c; ++c)
if(strchr(nick_lc_chars, *c) || strchr(nick_uc_chars, *c))
if (*c == ' ')
nick += "_";
else if (strchr(nick_lc_chars, *c) || strchr(nick_uc_chars, *c))
nick += *c;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment