From 9f37ab4f406b32a349c1f97fb796d2771c66236c Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 29 Nov 2005 17:20:00 +0000 Subject: 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 --- src/modules/m_spanningtree.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules') 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 params; - snprintf(agestr,MAXBUF,"%d",user->age); + snprintf(agestr,MAXBUF,"%lu",user->age); params.clear(); params.push_back(agestr); params.push_back(user->nick); -- cgit v1.2.3