summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-06 10:51:21 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-06 10:51:21 +0000
commit49c27deda7e52c4b4874bb4984b7f2934fd16d12 (patch)
tree039c755e562a59e4ede204ef1d6407f375fa5340 /src/modules/m_spanningtree.cpp
parent4516deac6cd13163cac9f2506ff8df079f44c0cb (diff)
Removed typos (whoops)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2212 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree.cpp')
-rw-r--r--src/modules/m_spanningtree.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp
index 7716fee58..313a5d93c 100644
--- a/src/modules/m_spanningtree.cpp
+++ b/src/modules/m_spanningtree.cpp
@@ -1441,7 +1441,7 @@ void AddThisServer(TreeServer* server, std::deque<TreeServer*> &list)
void GetListOfServersForChannel(chanrec* c, std::deque<TreeServer*> &list)
{
std::vector<char*> *ulist = c->GetUsers();
- unsingned int ucount = ulist->size()
+ unsigned int ucount = ulist->size();
for (unsigned int i = 0; i < ucount; i++)
{
char* o = (*ulist)[i];
@@ -1453,7 +1453,7 @@ void GetListOfServersForChannel(chanrec* c, std::deque<TreeServer*> &list)
AddThisServer(best,list);
}
}
- return list;
+ return;
}
bool DoOneToAllButSenderRaw(std::string data,std::string omit,std::string prefix,std::string command,std::deque<std::string> params)
@@ -1501,7 +1501,7 @@ bool DoOneToAllButSenderRaw(std::string data,std::string omit,std::string prefix
}
}
unsigned int items = TreeRoot->ChildCount();
- for (unsigned int x = 0; x < n; x++)
+ for (unsigned int x = 0; x < items; x++)
{
TreeServer* Route = TreeRoot->GetChild(x);
if ((Route->GetSocket()) && (Route->GetName() != omit) && (omitroute != Route))
@@ -1523,7 +1523,7 @@ bool DoOneToAllButSender(std::string prefix, std::string command, std::deque<std
FullLine = FullLine + " " + params[x];
}
unsigned int items = TreeRoot->ChildCount();
- for (unsigned int x = 0; x < n; x++)
+ for (unsigned int x = 0; x < items; x++)
{
TreeServer* Route = TreeRoot->GetChild(x);
// Send the line IF: