mIRC Home    About    Download    Register    News    Help

Print Thread
#79881 19/04/04 04:48 AM
Joined: Nov 2003
Posts: 50
X
x64 Offline OP
Babel fish
OP Offline
Babel fish
X
Joined: Nov 2003
Posts: 50
I want to create a script in which if chanserv ops someone when the last line in the buffer is that person joining, it changes the join message to a join+op message (thus using one, instead of two lines). How do you change a line of text in a channel window after it's been echo'ed?

Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
Im guessing you'd probably timer delay the default text from being shown, perform an alias at timer countdown, then see about if ($nick isop #). This isnt my thing, but others could build off of my idea (if you dont figure it out first)


Just for fun edit comment:

Of course it'd be better if IRCds made it so instead of chanserv opping you when you join and you've matched methods of op checking, it just said something like:

* Join @Nickname (address@thisstuff.com)


Then we'd never need to script it ;-) (disclaimer, this was JUSTa joke - pay no attention to any possible seriousness that you may infer from the above statement which was not implied. if such inferment was made, then that meant I impied it which I didnt LOL grin )


Those who fail history are doomed to repeat it
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
On ^!*:join:#:{
haltdef
$+(.timerJOIN,$cid,#,$nick) 1 1 echo -tc join # * $nick has joined #
}

On ^*:op:#:{
if $timer($+(JOIN,$cid,#,$opnick)) {
haltdef
echo -tc join # * $opnick has joined # and received an op from $nick
$+(.timerJOIN,$cid,#,$opnick) off
}
}

On ^!*:part:#:{
if $timer($+(JOIN,$cid,#,$nick)) {
haltdef
echo -tc join # * $nick has joined & left #
$+(.timerJOIN,$cid,#,$nick) off
}
}

On me:*:part:#: $+(.timerJOIN,$cid,#,*) off
On *:kick:#: if $knick == $me { $+(.timerJOIN,$cid,#,*) off }

Joined: Nov 2003
Posts: 25
N
Ameglian cow
Offline
Ameglian cow
N
Joined: Nov 2003
Posts: 25
I don't mean to nitpick, but I think it's better to use

$+(JOIN,$cid,$nick,#)

instead of

$+(JOIN,$cid,#,$nick)

Consider this example:

abc joins #xyz
bc joins #xyza

Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
I agree. Thanks for the correction laugh

#79886 22/04/04 02:04 AM
Joined: Nov 2003
Posts: 50
X
x64 Offline OP
Babel fish
OP Offline
Babel fish
X
Joined: Nov 2003
Posts: 50
Ok.. There is a difference between "How do i change a line of channel text after it has been echo'd?" and "How do i postpone echoing a line of text?". Thanks for, of course, giving me everything except the answer I aked for. Your methods: 1. pospone the JOIN message. 2. Don't visibly change the line from one thing to another as it happens.

#79887 22/04/04 02:24 AM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
As for now this is the only possible way around. I support your suggestion and hope that newer versions will be more flexible in means of editing the content of channel windows.


Link Copied to Clipboard