mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 11:09:04 -04:00
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
This commit is contained in:
parent
8dd900c539
commit
68da120812
@ -201,4 +201,3 @@ extern "C" void * init_module( void )
|
||||
{
|
||||
return new ModuleBlockAmsgFactory;
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user