Re: irssi logging and commandline options
Marcus Rueckert <[email protected]> Fri, 7 Nov 2003 12:04:31 +0100
| Newsgroups | gmane.network.irc.irssi.devel,gmane.network.irc.irssi.user |
|---|---|
| Message-ID | <[email protected]> |
On 2003-11-07 00:49:43 -0600, Stephen Gill wrote:
> 1. When I issue certain logging file parameters, IRSSI neglects to log
> server data including /who output, server messages, etc. I like to keep
> channel data in it's own file like so:
>
> autolog_path = "~/irclogs/%Y/$tag/$0.%m-%d.log";
>
> But this keeps me from being able to log data that apparently doesn't fit
> into a channel category. Is this a bug? Can someone think of
> A) a better way to accomplish the same task as the above, or
> B) a way to modify the irssi source code to actually log the server data
> to a bogos channel name like: server.%m-%d.log.
did you check this setting?
11:55:13 autolog_level = all -crap -clientcrap -ctcps
i have to check at the weekend about logging of the server stuff.
> 2. I'd like to have the ability to run commands from the CLI after irssi
> joins the specified server. One example is that I want it to autojoin a
> channel after I start irssi from the CLI. I've written a perl module to
> load up individual commands from a flat text file so I can do this once I
> start up IRSSI, but I'd like to call that script, or at least be able to ask
> irssi to join a single channel from the CLI instead. I'm not entirely sure
> where the best place would be to modify the source code to add this
> functionality.
"/ircnet add -autosendcmd"
"/help ircnet" for more.
you can run multiple commmands there. e.g.:
'/ircnet add -autosendcmd "squery noteserv login darix myleetpw; query noteserv notify" IRCnet'
for autojoin use "/channel add -auto". e.g.:
'/channel add -auto #foobar IRCnet myleetchannelkey'
about your perl module: there is already file.pl from dg (you can find
it via http://scripts.irssi.org/)
> 3. I'm also looking for the ability to set the source hostname and target
> hostname on the CLI to change the USER parameters sent across when the
> client connects to a server. I've managed to do this with the source
> hostname and some tweaks, since the default -h parameter seems to be
> designed more towards choosing an interface to bind to rather than setting
> the parameter. I'd like to do something similar for the destination, though
> I don't need to store this in the config file as an added setting. It's a
> one time only thing per connection, where the default "target" should be the
> host the client is connecting to.
why do you want to patch irssi all the time? :)
'/ircnet add -hostname foo.bar.org -nick foobar -realname "foo bar!" IRCnet'
isnt this sufficient enough?:)
>
> Thanks in advance for any assistance.
no problem.
darix
--
irssi - the client of the smart and beautiful people
http://www.irssi.de/