summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-28 18:27:51 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-28 18:27:51 +0000
commitb2c7c614bd5a54f455d83d34d0ddb6d1f9fdaea1 (patch)
treec4a1cddbca0cd8df2462e4e74d24f67bab38d648 /src
parentbb544f9584131cf9dd084caff282d0459e058fad (diff)
Fixes 1
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7964 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/configreader.cpp6
-rw-r--r--src/modules/m_spanningtree/main.cpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp
index 2ee99f1af..3b3396f5c 100644
--- a/src/configreader.cpp
+++ b/src/configreader.cpp
@@ -1719,9 +1719,9 @@ InspIRCd* ServerConfig::GetInstance()
std::string ServerConfig::GetSID()
{
std::string OurSID;
- OurSID += (char)((Instance->Config->sid / 100) + 48);
- OurSID += (char)((Instance->Config->sid / 10) % 10 + 48);
- OurSID += (char)(Instance->Config->sid % 10 + 48);
+ OurSID += (char)((sid / 100) + 48);
+ OurSID += (char)((sid / 10) % 10 + 48);
+ OurSID += (char)(sid % 10 + 48);
return OurSID;
}
diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp
index 88bf9df21..09a788bd9 100644
--- a/src/modules/m_spanningtree/main.cpp
+++ b/src/modules/m_spanningtree/main.cpp
@@ -690,7 +690,7 @@ void ModuleSpanningTree::BroadcastTimeSync()
std::deque<std::string> params;
params.push_back(ConvToStr(ServerInstance->Time(false)));
params.push_back("FORCE");
- Utils->DoOneToMany(Instance->Config->GetSID(), "TIMESET", params);
+ Utils->DoOneToMany(ServerInstance->Config->GetSID(), "TIMESET", params);
}
}