]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/message.h
Lower <sts:duration> to 5m to prevent misconfigs denying access.
[user/henk/code/inspircd.git] / include / message.h
index 2e3cd9bb1c88c4ef5f819d2eb8837de2cc40e090..3a7c7018e7a772d97c5099a3f0f1c7bacda015bb 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * InspIRCd -- Internet Relay Chat Daemon
  *
- *   Copyright (C) 2017-2018 Sadie Powell <sadie@witchery.services>
+ *   Copyright (C) 2017-2018, 2020 Sadie Powell <sadie@witchery.services>
  *   Copyright (C) 2017-2018 Attila Molnar <attilamolnar@hush.com>
  *
  * This file is part of InspIRCd.  InspIRCd is free software: you can
@@ -167,5 +167,10 @@ class CoreExport MessageTarget
                        case TYPE_SERVER:
                                return *Get<std::string>();
                }
+
+               // We should never reach this point during a normal execution but
+               // handle it just in case.
+               static const std::string target = "*";
+               return target;
        }
 };