From 81af87545e9be791252e2f9b748dcf5abb876c58 Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Thu, 10 Jul 2008 13:51:56 +0000 Subject: [PATCH] Mantis#1391. Thank you kindly, Phrearch for a patch that: Solves svnbackup svn add directory failure. --- OpenSim/Region/Modules/SvnSerialiser/SvnBackupModule.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/OpenSim/Region/Modules/SvnSerialiser/SvnBackupModule.cs b/OpenSim/Region/Modules/SvnSerialiser/SvnBackupModule.cs index 4826ff28d8..9f5e5a37f8 100644 --- a/OpenSim/Region/Modules/SvnSerialiser/SvnBackupModule.cs +++ b/OpenSim/Region/Modules/SvnSerialiser/SvnBackupModule.cs @@ -212,9 +212,11 @@ namespace OpenSim.Region.Modules.SvnSerialiser { m_scenes.Add(scene); } - - scene.EventManager.OnPluginConsole += EventManager_OnPluginConsole; - } + //Only register it once, to prevend command being executed x*region times + if(m_scenes.Count ==1) { + scene.EventManager.OnPluginConsole += EventManager_OnPluginConsole; + } + } public void PostInitialise() {