summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-03 12:28:38 +0000
committerom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-03 12:28:38 +0000
commit2a6bfde6fe85f3655063a48f54d4266f52aebc98 (patch)
treea371d7890adc54cf392d16c24fe95bae244575c7
parent93150cc77388df7c04d1f191a29f57b39261603d (diff)
Typo fix
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4102 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/cmd_eline.cpp2
-rw-r--r--src/modules/m_spanningtree.cpp6
2 files changed, 5 insertions, 3 deletions
diff --git a/src/cmd_eline.cpp b/src/cmd_eline.cpp
index 3a77c2b54..cf5e13414 100644
--- a/src/cmd_eline.cpp
+++ b/src/cmd_eline.cpp
@@ -41,7 +41,7 @@ void cmd_eline::Handle (char **parameters, int pcnt, userrec *user)
if (!duration(parameters[1]))
{
- WriteOpers("*** %s added permenant E-line for %s.",user->nick,parameters[0]);
+ WriteOpers("*** %s added permanent E-line for %s.",user->nick,parameters[0]);
}
else
{
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp
index b88083c3f..2798b7fb3 100644
--- a/src/modules/m_spanningtree.cpp
+++ b/src/modules/m_spanningtree.cpp
@@ -2223,12 +2223,14 @@ class TreeSocket : public InspSocket
std::deque<std::string> params;
this->Split(line.c_str(),true,params);
+
irc::string command = "";
std::string prefix = "";
- if (((params[0].c_str())[0] == ':') && (params.size() > 1))
+
+ if ((params[0][0] == ':') && (params.size() > 1))
{
prefix = params[0];
- command = params[1].c_str();
+ command = params[1];
char* pref = (char*)prefix.c_str();
prefix = ++pref;
params.pop_front();