X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fuser_ops.c;h=85f21d69503095bd661dbd34a46562fac5d06afc;hb=1b1616ca8b0d20b9454fbc13bdbf5d7bc8f1ee7b;hp=3fd6b4a8536ab6ddd2511e2dcb7787aab7a0e78b;hpb=da071e05139bde1ff29c8a06c72ecfbfbda02f28;p=citadel.git diff --git a/citadel/user_ops.c b/citadel/user_ops.c index 3fd6b4a85..85f21d695 100644 --- a/citadel/user_ops.c +++ b/citadel/user_ops.c @@ -590,11 +590,7 @@ void session_startup(void) */ snprintf(CC->cs_inet_email, sizeof CC->cs_inet_email, "%s@%s", CC->user.fullname, config.c_fqdn); - for (i=0; !IsEmptyStr(&CC->cs_inet_email[i]); ++i) { - if (isspace(CC->cs_inet_email[i])) { - CC->cs_inet_email[i] = '_'; - } - } + convert_spaces_to_underscores(CC->cs_inet_email); /* Create any personal rooms required by the system. * (Technically, MAILROOM should be there already, but just in case...)