summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/serialize.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/serialize.h b/include/serialize.h
index a4895ac0c..dd721e693 100644
--- a/include/serialize.h
+++ b/include/serialize.h
@@ -169,7 +169,7 @@ public:
/** Gets the name for this type
* @return The name, eg "NickAlias"
*/
- const Anope::string &GetName() { return this->name; }
+ const Anope::string &GetName() const { return this->name; }
/** Unserialized an object.
* @param obj NULL if this object doesn't yet exist. If this isn't NULL, instead