From c1807e0888c5851ab4fc2b419ec892a601792179 Mon Sep 17 00:00:00 2001 From: Cerapter Date: Sat, 28 Jul 2018 14:41:42 +0200 Subject: [PATCH] Max OOC name limited, unnecessary variable removed. --- courtroom.cpp | 1 + courtroom.h | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/courtroom.cpp b/courtroom.cpp index 55a1784..70e3f66 100644 --- a/courtroom.cpp +++ b/courtroom.cpp @@ -111,6 +111,7 @@ Courtroom::Courtroom(AOApplication *p_ao_app) : QMainWindow() ui_ooc_chat_name = new QLineEdit(this); ui_ooc_chat_name->setFrame(false); ui_ooc_chat_name->setPlaceholderText("Name"); + ui_ooc_chat_name->setMaxLength(30); ui_ooc_chat_name->setText(p_ao_app->get_default_username()); diff --git a/courtroom.h b/courtroom.h index 590de3d..4569156 100644 --- a/courtroom.h +++ b/courtroom.h @@ -164,8 +164,6 @@ private: // A stack of inline colours. std::stack inline_colour_stack; - bool centre_text = false; - bool next_character_is_not_special = false; // If true, write the // next character as it is.