From 89b4be681de8c9242abbe05c499a1426290d947c Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 15 Oct 2011 00:54:32 -0400 Subject: Fixed crash on /os oper del --- include/opertype.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/opertype.h b/include/opertype.h index 3f40df7e7..962d67c79 100644 --- a/include/opertype.h +++ b/include/opertype.h @@ -23,7 +23,9 @@ struct CoreExport Oper std::vector hosts; Anope::string vhost; - Oper(const Anope::string &n, OperType *o) : name(n), ot(o) { } + Oper(const Anope::string &n, OperType *o) : name(n), ot(o) { this->config = false; } + + virtual ~Oper() { } /** Find an oper block by name * @param name The name -- cgit