summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-10-15 00:54:32 -0400
committerAdam <Adam@anope.org>2011-10-15 00:54:32 -0400
commit89b4be681de8c9242abbe05c499a1426290d947c (patch)
treeea253cb97f37926b7cd14fc47b33f6932589ffac
parent28ca0e10070cd449c90609d95e839739ec4b7590 (diff)
Fixed crash on /os oper del
-rw-r--r--include/opertype.h4
1 files changed, 3 insertions, 1 deletions
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<Anope::string> 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