summaryrefslogtreecommitdiff
path: root/include/service.h
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2023-09-05 00:21:31 +0100
committerSadie Powell <sadie@witchery.services>2023-09-05 00:21:31 +0100
commitca2209aaedc6c646063a58261fef2b57276ce4bb (patch)
tree6002525e5960e50ebbac12f73ca3a91ffe1c388c /include/service.h
parent0a3ddef3151ef4258e529f5850be08810fa146d3 (diff)
Show the SQL service name in the db_sql error message.
This should help users diagnose issues easier.
Diffstat (limited to 'include/service.h')
-rw-r--r--include/service.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/service.h b/include/service.h
index 34e3c064e..c5c5a5881 100644
--- a/include/service.h
+++ b/include/service.h
@@ -128,6 +128,10 @@ class ServiceReference : public Reference<T>
{
}
+ const Anope::string &GetServiceName() const { return name; }
+
+ const Anope::string &GetServiceType() const { return type; }
+
inline void operator=(const Anope::string &n)
{
this->name = n;