aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--irc_im.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/irc_im.c b/irc_im.c
index fe279abe..0b0b0274 100644
--- a/irc_im.c
+++ b/irc_im.c
@@ -83,9 +83,9 @@ static gboolean bee_irc_user_new(bee_t *bee, bee_user_t *bu)
}
}
- while ((s = strchr(iu->user, ' '))) {
- *s = '_';
- }
+ /* Sanitize */
+ str_reject_chars(iu->user, " ", '_');
+ str_reject_chars(iu->host, " ", '_');
if (bu->flags & BEE_USER_LOCAL) {
char *s = set_getstr(&bee->set, "handle_unknown");