I need some help with seein my onjoin. I know this is a stupid question, but I ask alot of stupid questions so this works for me. I know that to see the topic its ilke $chan($chan).topic but what is it for onjoin? Can anyone help?
A TG007 community discussion started by McGugamafia.
I need some help with seein my onjoin. I know this is a stupid question, but I ask alot of stupid questions so this works for me. I know that to see the topic its ilke $chan($chan).topic but what is it for onjoin? Can anyone help?
well onjoin really isn't a raw or anything like that. It's actually just a message from the channel. There are a few ways you can get it to show. One is use your on text command. just try if ($nick == $chan) { echo blah blah }
thanks, but wha tI'm actually lookin for is for it to show in a dialog. I want the dialog to show what the current onjoin message is in the room, so I'm lookin for somethin to put in the box.
well you can use it that way.. just set a var when you join the room for the onjoin
then you can show it in the dialog
here is how to set it for just that room: use on text command
if ($nick == $chan) { set %onjoinchan. [ $+ [ $right($comchan($me,1),-2) ] ] $1- }
Now for the dialog code
did -ra $dname 6 %onjoinchan. [ $+ [ $right($comchan($me,1),-2) ] ]
like i tend to say there are always other ways.. that's just one. ( Mainly for vincula connection )
PROP # OnJoin (no colon)
You'll be returned IRCRPL_PROPLIST (818) and it'll contain the current OnJoin. I believe you must be a host or owner to grab the OnJoin this way.
The Ignition Project | http://www.ignition-project.com/
Registered Linux User Number 368435
Hardware: AMD Athlon 64 3500+, DFI nF4 SLI Infinity, 1GB Dual Channel DDR400, 250GB Western Digital 2500 SE16 SATA II @7200rpm, 200GB Seagate 3200A UATA-133 @7200rpm, NVIDIA GeForce 6800GS OC'ed, 20" Apple Cinema Display
use
if ($nick ischan)
on me:*:join:#:hop #
well you can use it that way.. just set a var when you join the room for the onjointhen you can show it in the dialog
here is how to set it for just that room: use on text command
if ($nick == $chan) { set %onjoinchan. [ $+ [ $right($comchan($me,1),-2) ] ] $1- }
Now for the dialog code
did -ra $dname 6 %onjoinchan. [ $+ [ $right($comchan($me,1),-2) ] ]
like i tend to say there are always other ways.. that's just one. ( Mainly for vincula connection )
this is all good, until you get wise cracks by the chan which sends multiple messages in 1 go. Meaning only the last line will get saved, but the welcome message could be 2 or 3 lines. What i recommend is saving it in a text file, like if ($nick ischan) { write <text file> $1- }
that way it will hold the welcome message for you. Ofcourse, you will need to advance it more to make it so that it clears/deletes that text file every time you join a different room otherwise it will not reset itself.
Sign in to reply or start a new topic where your account has permission.