MUC: Disallow room names with a '/'
authorMikael Berthe <mikael@lilotux.net>
Mon, 26 Sep 2005 22:41:39 +0200
changeset 454 d647b92e541f
parent 453 39e173645f9c
child 455 9d0e72607251
MUC: Disallow room names with a '/'
mcabber/src/commands.c
--- a/mcabber/src/commands.c	Mon Sep 26 22:36:18 2005 +0200
+++ b/mcabber/src/commands.c	Mon Sep 26 22:41:39 2005 +0200
@@ -935,6 +935,11 @@
     for (; *arg && *arg == ' '; arg++)
       ;
 
+    if (strchr(arg, '/')) {
+      scr_LogPrint(LPRINT_NORMAL, "Invalid room name");
+      return;
+    }
+
     roomname = g_strdup(arg);
     nick = strchr(roomname, ' ');
     if (!nick) {