summaryrefslogtreecommitdiff
path: root/src/modules/m_safelist.cpp
diff options
context:
space:
mode:
authorom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-09 12:40:52 +0000
committerom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-09 12:40:52 +0000
commit68da120812b1e593c76ea75d0d591f47b6a4f402 (patch)
treee135be4ae9ae36992e50fb9ffbe3ac07c0081738 /src/modules/m_safelist.cpp
parent8dd900c539ff62558a8c56173f17d1721c27b472 (diff)
Fix printf format to get rid of compile warning (using %d for a long, change to %ld)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3587 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_safelist.cpp')
-rw-r--r--src/modules/m_safelist.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_safelist.cpp b/src/modules/m_safelist.cpp
index c945bc9d9..5b7e0f87c 100644
--- a/src/modules/m_safelist.cpp
+++ b/src/modules/m_safelist.cpp
@@ -105,7 +105,7 @@ class ListTimer : public InspTimer
/* If there are only invisible users on the channel, dont show it */
if (users)
{
- int counter = snprintf(buffer,MAXBUF,"322 %s %s %d :[+%s] %s",u->nick,chan->name,users,chanmodes(chan,has_user),chan->topic);
+ int counter = snprintf(buffer,MAXBUF,"322 %s %s %ld :[+%s] %s",u->nick,chan->name,users,chanmodes(chan,has_user),chan->topic);
amount_sent += counter + 4 + Srv->GetServerName().length();
log(DEBUG,"m_safelist.so: Sent %ld of safe %ld / 4",amount_sent,u->sendqmax);
WriteServ_NoFormat(u->fd,buffer);