diff options
author | Adam <Adam@anope.org> | 2016-10-15 16:25:57 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2016-10-15 16:25:57 -0400 |
commit | 1ba242179fee46583098f48421af39ce9a8985a1 (patch) | |
tree | a276cd7bd53e7270c86ab3744bd6a568a016501b /modules/botserv/assign.cpp | |
parent | 696239e93391f3dfd6459857fb02a6006048093a (diff) |
Various improvements/bugfixes to extdb stuff
Diffstat (limited to 'modules/botserv/assign.cpp')
-rw-r--r-- | modules/botserv/assign.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/botserv/assign.cpp b/modules/botserv/assign.cpp index eb6b8da10..a26b869fe 100644 --- a/modules/botserv/assign.cpp +++ b/modules/botserv/assign.cpp @@ -67,7 +67,7 @@ class CommandBSAssign : public Command return; } - if (bi->bi->GetOperOnly() && !source.HasPriv("botserv/administration")) + if (bi->bi && bi->bi->GetOperOnly() && !source.HasPriv("botserv/administration")) { source.Reply(_("Access denied. Bot \002{0}\002 is for operators only."), bi->nick); return; @@ -265,7 +265,7 @@ class BSAssign : public Module return; } - if (bi->bi->GetOperOnly() && !source->HasPriv("botserv/administration")) + if (bi->bi && bi->bi->GetOperOnly() && !source->HasPriv("botserv/administration")) { targ->SendMessage(bi, _("Access denied. Bot \002{0}\002 is for operators only."), bi->nick); return; |