From: wiebe Date: Tue, 6 Apr 2010 12:32:08 +0000 (+0200) Subject: welcome: dont allow timestamp to be 0 X-Git-Url: https://jfr.im/git/irc/quakenet/snircd-patchqueue.git/commitdiff_plain/9223cb064ba5049720d89b1d3b06470ed331fca3?hp=d06a9d1ff26723dff75bad948a4bb11377d9d8b8 welcome: dont allow timestamp to be 0 --- diff --git a/welcome.patch b/welcome.patch index 40b3f74..094222c 100644 --- a/welcome.patch +++ b/welcome.patch @@ -771,7 +771,7 @@ diff -r a9b437e961ec ircd/s_user.c diff -r a9b437e961ec ircd/welcome.c --- /dev/null +++ b/ircd/welcome.c -@@ -0,0 +1,592 @@ +@@ -0,0 +1,596 @@ +/* + * IRC - Internet Relay Chat, ircd/welcome.c + * Copyright (C) 1990 Jarkko Oikarinen and @@ -1109,6 +1109,10 @@ diff -r a9b437e961ec ircd/welcome.c + Debug((DEBUG_DEBUG, "welcome_do(\"%s\", \"%s\", \"%s\", %Tu, \"%s\", \"%s\", 0x%04x)", + cli_name(cptr), cli_name(sptr), name, timestamp, who, text, flags)); + ++ /* if for some reason timestamp is 0, increase it */ ++ if (timestamp == 0) ++ timestamp++; ++ + /* name empty after taking off the prefixes? */ + if (EmptyString(name)) { + if (IsUser(sptr))