Author Topic: Need to ensure joining of a channel before an autoperform  (Read 4541 times)

Knight

  • Guest
Need to ensure joining of a channel before an autoperform
« on: August 02, 2009, 02:17:40 PM »
Hey everyone!

I have a small problem with an autoperform completing before an autojoin for a related channel.

We run a little #IdleRPG channel on our irc network and I've set up both the autoperform and autojoin sections of the server properties.  The specific problem is you can't login until you have joined the channel.  Upon connecting the autoperform login string fires off to the IdleRPG bot before the channel is autojoined.  So I end up just resending the login manually.

Again, this is not a high priority problem just a small little challenge I'm trying to overcome.  Thank you for any and all assistance.

codemunkeh

  • Guest
Re: Need to ensure joining of a channel before an autoperform
« Reply #1 on: August 02, 2009, 06:17:51 PM »
Someone had this problem on the IRC channel tonight.

What you want to do is not use autoperform, but...

Make a script, (V5 style), with...

Sub ONJOIN(Nickname,Host,Channel,ServerNumber)
if Nickname = GetIdentifier("$me") then
if LCase(Channel) = "#idlerpg" then

(login here)...
SendCommand "/msg #idlerpg !login", ServerNumber
(change !login to the actual command, and #idlerpg to the name of the bot if you login by pm'ing it)

end if
end if
end sub

^^ save it as Icechat v5 style (.ice) and you're good to go. oh, and delete the login from AutoPerform

(I have no idea how the v7 style works but it appears to be simpler).

Windows_95

  • Newbie
  • *
  • Posts: 31
  • Who's cool and has two thumbs? This guy!
Re: Need to ensure joining of a channel before an autoperform
« Reply #2 on: August 04, 2009, 06:59:38 PM »
instead of using the autojoin list you could just use the autopreform

for example:

/join #idlerpg
/timer $rnd(100) 1 [seconds you want to wait] /msg [bot name] [login info]

or you could use the script both should work just fine
I do not feel obliged to believe that the same God who has endowed us with sense, reason, and intellect has intended us to forgo their use. Galileo Galilei

Knight

  • Guest
Re: Need to ensure joining of a channel before an autoperform
« Reply #3 on: August 11, 2009, 10:34:54 AM »
instead of using the autojoin list you could just use the autopreform

for example:

/join #idlerpg
/timer $rnd(100) 1 [seconds you want to wait] /msg [bot name] [login info]

or you could use the script both should work just fine

Thanks Windows_95 that did the trick perfectly!  I did try what you mentioned codemunkeh but my knowledge/ability with the creation/usage of scripts is so basic I got about as far as trying to save that info in a text file with a .ice extension!  ;0 ;)  I am sure it would have worked if I had known more.

Thank you both!  This little issue is most decidedly solved.  ;)