🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #47776

patch for slrn [change hostname from within S-Lang]

#47776
From: markus
Date: Mon, 05 Apr 1999 00:00
30 lines
1707 bytes
A few weeks ago i asked this question how to change the hostname from
within S-Lang in slrn, nobody could give me answer, even not the author.
People mailed me saying 'it just does not work'. But i needed it, so 
i wrote a quick, dirty patch for slrn which does the trick.

The patch is available from
http://developing.at.frob.org/slrn-0.9.5.4-hostname-patch

I only tested it against version 0.9.5.4. This is not meant to be the
'right solution', its neither very well tested. I wrote it just to
satisfy my needs, for personal use, not for the public.
But since others could benefit from it, i put it in the public.

I didn't take a careful look at sources, which means this patch
could break anything else you maybe needed, so use this patch
at your own risk !

How it works :
--------------

You have a new variable called 'post_hostname', you can set it
from ~/.slrnrc and alter it from you slang interpreter file.

I used it two hooks, pre_article_mode_hook() and post_hook()
and it works ery well for me.

sincerly,
	Maruks

Technical Details
Message-ID: <slrn7ghbph.2kn.drbrain@josefine.ben.tuwien.ac.at>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <slrn7ghbph.2kn.drbrain@josefine.ben.tuwien.ac.at>
Subject: patch for slrn [change hostname from within S-Lang]
Date: Mon, 05 Apr 1999 00:00:00 +0000
From: drbrain@ziemlich.org (markus)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 462860804
Organization: Vienna University of Technology, Austria
Followup-To: news.software.readers
User-Agent: slrn/0.9.5.4 (UNIX)
Newsgroups: news.software.readers,at.linux