#include <string.h>
#include <limits.h>
#include <ctype.h>
+#include <expat.h>
#include <libcitadel.h>
#include "citadel.h"
#include "server.h"
#include "internet_addressing.h"
#include "md5.h"
#include "ctdl_module.h"
-
-#ifdef HAVE_EXPAT
-#include <expat.h>
#include "serv_xmpp.h"
* do not allow spaces so we can tell the user to substitute underscores if their
* login name contains spaces.
*/
- while (ptr=strstr(ident, "_")) {
- *ptr = ' ';
- }
-
- while (ptr=strstr(user, "_")) {
- *ptr = ' ';
- }
+ convert_spaces_to_underscores(ident);
+ convert_spaces_to_underscores(user);
/* Now attempt authentication */
"</iq>"
);
}
-
-
-
-#endif /* HAVE_EXPAT */