Mercurial > hg
changeset 454:d647b92e541f
MUC: Disallow room names with a '/'
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Mon, 26 Sep 2005 22:41:39 +0200 |
parents | 39e173645f9c |
children | 9d0e72607251 |
files | mcabber/src/commands.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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) {