summaryrefslogtreecommitdiff
path: root/src/modules/m_park.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_park.cpp')
-rw-r--r--src/modules/m_park.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_park.cpp b/src/modules/m_park.cpp
index 17c9430fc..f957b7f37 100644
--- a/src/modules/m_park.cpp
+++ b/src/modules/m_park.cpp
@@ -68,7 +68,7 @@ void handle_park(char **parameters, int pcnt, userrec *user)
awaylog* aw;
parkedinfo pi;
char msg[MAXBUF];
- long key = random() * 12345;
+ long key = abs(random() * 12345);
snprintf(msg,MAXBUF,"You are now parked. To unpark use /UNPARK %s %d",user->nick,key);
Srv->UserToPseudo(user,std::string(msg));
aw = new awaylog;