summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_customtitle.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/m_customtitle.cpp b/src/modules/m_customtitle.cpp
index 011ec1974..d00bdf975 100644
--- a/src/modules/m_customtitle.cpp
+++ b/src/modules/m_customtitle.cpp
@@ -47,6 +47,9 @@ bool OneOfMatches(const char* host, const char* ip, const char* hostlist)
CmdResult Handle(const char** parameters, int pcnt, userrec* user)
{
+ if (!IS_LOCAL(user))
+ return CMD_LOCALONLY;
+
char TheHost[MAXBUF];
char TheIP[MAXBUF];