summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-11-29 17:20:00 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-11-29 17:20:00 +0000
commit9f37ab4f406b32a349c1f97fb796d2771c66236c (patch)
tree267e53180dccf219ed591095a2bb4309f644beee
parent95f6801fb1acffaa7ab62a2dc200a505e3899fca (diff)
Fixed warning and attempt to use string as an int (!)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2013 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/m_spanningtree.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp
index fd0f772ab..8bdeac8fc 100644
--- a/src/modules/m_spanningtree.cpp
+++ b/src/modules/m_spanningtree.cpp
@@ -613,7 +613,7 @@ class TreeSocket : public InspSocket
if (u)
{
strlcpy(u->oper,opertype.c_str(),NICKMAX);
- if (!strchr(u->modes,"o"))
+ if (!strchr(u->modes,'o'))
{
strcat(u->modes,"o");
}
@@ -1341,7 +1341,7 @@ class ModuleSpanningTree : public Module
{
log(DEBUG,"**** User on %s CONNECTS: %s",user->server,user->nick);
std::deque<std::string> params;
- snprintf(agestr,MAXBUF,"%d",user->age);
+ snprintf(agestr,MAXBUF,"%lu",user->age);
params.clear();
params.push_back(agestr);
params.push_back(user->nick);