diff options
| author | 2005-04-26 00:58:31 +0000 | |
|---|---|---|
| committer | 2005-04-26 00:58:31 +0000 | |
| commit | b6f5d703b010fa5e4cd1d082ea70fe0cc27fb9e9 (patch) | |
| tree | a4968276af8ce4ab6d5281af8355cbab96b67934 /src/modules/m_park.cpp | |
| parent | Fixed include issue (diff) | |
Major code tidyup (-W) - expect a few belches
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1190 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_park.cpp')
| -rw-r--r-- | src/modules/m_park.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_park.cpp b/src/modules/m_park.cpp index 4407426b8..123a4dbe2 100644 --- a/src/modules/m_park.cpp +++ b/src/modules/m_park.cpp @@ -68,8 +68,8 @@ void handle_park(char **parameters, int pcnt, userrec *user) { awaylog* aw; char msg[MAXBUF]; - long key = abs(random() * 12345); - snprintf(msg,MAXBUF,"You are now parked. To unpark use /UNPARK %s %d",user->nick,key); + unsigned long key = abs(random() * 12345); + snprintf(msg,MAXBUF,"You are now parked. To unpark use /UNPARK %s %lu",user->nick,key); Srv->UserToPseudo(user,std::string(msg)); aw = new awaylog; user->Extend("park_awaylog",(char*)aw); @@ -84,7 +84,7 @@ void handle_park(char **parameters, int pcnt, userrec *user) void handle_parkstats(char **parameters, int pcnt, userrec *user) { char status[MAXBUF]; - snprintf(status,MAXBUF,"NOTICE %s :There are a total of %d parked clients on this server, with a maximum of %d parked sessions allowed per user.",user->nick,pinfo.size(),ConcurrentParks); + snprintf(status,MAXBUF,"NOTICE %s :There are a total of %lu parked clients on this server, with a maximum of %lu parked sessions allowed per user.",user->nick,(unsigned long)pinfo.size(),(unsigned long)ConcurrentParks); Srv->SendServ(user->fd,status); } |
