]> git.donarmstrong.com Git - infobot.git/commitdiff
minor change to reloadModule
authordms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Mon, 2 Oct 2000 17:29:49 +0000 (17:29 +0000)
committerdms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Mon, 2 Oct 2000 17:29:49 +0000 (17:29 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@153 c11ca15a-4712-0410-83d8-924469b57eb5

src/modules.pl

index 792408449c3bd7278f7154900d602fa7762e8cc6..a27d4928f85fa585ccafe62d2cd95eaa835021a5 100644 (file)
@@ -192,6 +192,12 @@ sub reloadModule {
     my ($mod)  = @_;
     my $file   = (grep /\/$mod/, keys %INC)[0];
 
+    # don't reload if it's not our module.
+    if ($mod =~ /::/ or $mod !~ /pl$/) {
+       &VERB("Not reloading $mod.",3);
+       return;
+    }
+
     if (!defined $file) {
        &WARN("rM: Cannot reload $mod since it was not loaded anyway.");
        return;