🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #56569

Re: [slrn] howto update counter in hook?

#56569
From: Rejo Zenger
Date: Sat, 08 Jan 2000 00:00
41 lines
2522 bytes
++ <slrn87f64r.sh9.davis@aluche.mit.edu>; John E. Davis:
>>But, for what i would need it, i would probably have to use unix_ctime.
>
>unix_ctime does not exist in more recent versions of slang.  It has
>been renamed to ctime.  The 1.3.x versions support the following time
>functions: _time, ctime, gmtime, localtime, time, times, as well as
>tic, and toc.

Ok. Still i have a problem:


  S-Lang Error: Type Mismatch: Expecting Integer_Type, found String_Type 


As this is what i have:


  variable Default_username;
  Default_username = get_variable_value ("username");

  define _time ();
  define post_hook ()
  {
     set_string_variable ("username", sprintf ("rejo+f%d", _time ()));
  }


I did have a look at slang.txt and slangfun.txt, but still don't see
what i should use here. I guess it goed wrong in the part after sprintf,
but slangfun.txt tells me there should be a String_Type there, but the
error is talking about Integer_Type. So what to do now?

	-Rejo.

-- 
= Rejo Zenger  [Sister Ray Crisiscentrum]               rejo@sisterray.xs4all.nl
= http://mediaport.org/~sister (and my_urls.html)               PGP: see headers
--------------------------------------------------------------------------------
  Destroy a spamhaus! http://www.xs4all.nl/~sister/mirror/sengir/spam_sites.html

Technical Details
Message-ID: <slrn87fij2.4dm.rejo@sisterray.xs4all.nl>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <slrn87a8om.16h.rejo.f0001nim@sisterray.xs4all.nl> <slrn87aa5f.nas.davis@aluche.mit.edu> <slrn87bbp0.15s.rejo@sisterray.xs4all.nl> <slrn87c6pj.1bn.tststs@starflower.tststs.ddns.org> <slrn87di3e.qtm.davis@aluche.mit.edu> <slrn87dte2.13a.rejo@sisterray.xs4all.nl> <slrn87f64r.sh9.davis@aluche.mit.edu>

Show Full Headers
Complete Article Headers
Message-ID: <slrn87fij2.4dm.rejo@sisterray.xs4all.nl>
Subject: Re: [slrn] howto update counter in hook?
Date: Sat, 08 Jan 2000 00:00:00 +0000
From: rejo@sisterray.xs4all.nl (Rejo Zenger)
References: <slrn87a8om.16h.rejo.f0001nim@sisterray.xs4all.nl> <slrn87aa5f.nas.davis@aluche.mit.edu> <slrn87bbp0.15s.rejo@sisterray.xs4all.nl> <slrn87c6pj.1bn.tststs@starflower.tststs.ddns.org> <slrn87di3e.qtm.davis@aluche.mit.edu> <slrn87dte2.13a.rejo@sisterray.xs4all.nl> <slrn87f64r.sh9.davis@aluche.mit.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 570158092
X-PGP-Id: ELG-E/DSS 0x75FC50F3, DSS/DH 0x2C8059B5, RSA 0xFAE40065
X-Complaints-To: abuse@xs4all.nl
X-Trace: news1.xs4all.nl 947375054 23452 194.109.57.59 (8 Jan 2000 23:44:14 GMT)
Organization: Sister Ray Zenuwcentrum
X-PGP-Keys: Available at keyserver and website or finger <sister@xs4all.nl>
User-Agent: slrn/0.9.5.7 (UNIX)
NNTP-Posting-Date: 8 Jan 2000 23:44:14 GMT
Newsgroups: news.software.readers