diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/modules.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/modules.cpp b/src/modules.cpp index 13cc3e740..25062cd47 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -79,11 +79,15 @@ Admin::Admin(std::string name, std::string email, std::string nick) Request::Request(char* anydata, Module* src, Module* dst) : data(anydata), source(src), dest(dst) { + /* Ensure that because this module doesnt support ID strings, it doesnt break modules that do + * by passing them uninitialized pointers (could happen) + */ + id = '\0'; } Request::Request(Module* src, Module* dst, const char* idstr) : id(idstr), source(src), dest(dst) -{ +{ }; char* Request::GetData() |