diff options
author | Adam <Adam@anope.org> | 2013-11-12 19:19:21 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-11-12 19:19:21 -0500 |
commit | c9f4c2db1f90cc16bb23ac176cf4a6dbaa621696 (patch) | |
tree | 150a5367c203ad6fd0eb76d96c0adfcf728f2419 /modules/commands/ns_ajoin.cpp | |
parent | d1248d12491375f2496673d9f87842ff8dee9fa4 (diff) |
try/catch cs_access AccessUnserialize just incase, don't crash if ns_ajoin is loaded before the protocol module
Diffstat (limited to 'modules/commands/ns_ajoin.cpp')
-rw-r--r-- | modules/commands/ns_ajoin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/commands/ns_ajoin.cpp b/modules/commands/ns_ajoin.cpp index 2817dd1a6..383f1acac 100644 --- a/modules/commands/ns_ajoin.cpp +++ b/modules/commands/ns_ajoin.cpp @@ -252,7 +252,7 @@ class NSAJoin : public Module ajoinentry_type("AJoinEntry", AJoinEntry::Unserialize) { - if (!IRCD->CanSVSJoin) + if (!IRCD || !IRCD->CanSVSJoin) throw ModuleException("Your IRCd does not support SVSJOIN"); } |