mIRC Home    About    Download    Register    News    Help

Print Thread
Page 2 of 2 1 2
Re: Need help with "!avail" thing... #132069 07/10/05 04:48 PM
Joined: Oct 2004
Posts: 8,327
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,327
Sorry, was away. When you change your nick, it should echo something. What does it echo? That's why I added that, so we could see what was echoed.


Invision Support
#Invision on irc.irchighway.net
Re: Need help with "!avail" thing... #132070 07/10/05 04:58 PM
Joined: Oct 2005
Posts: 126
PhyxiuS Offline OP
Vogon poet
OP Offline
Vogon poet
Joined: Oct 2005
Posts: 126
This:

<hYp`PhyX-> !avail
* UP changes topic to 'Available: hYp`PhyX-'
hYp`PhyX- is now known as testinggg
Available: hYp`PhyX- ~ hYp`PhyX- (echo line)
testinggg is now known as hYp`PhyX-
Available: hYp`PhyX- ~ testinggg (echo line)

Last edited by PhyxiuS; 07/10/05 05:03 PM.

If you mess with the best, u will die like the rest !
Re: Need help with "!avail" thing... #132071 07/10/05 05:33 PM
Joined: Oct 2004
Posts: 8,327
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,327
Hm... I'm stumped on this one... I can't test in a channel right now, but trying to test it locally, it seems to work fine.

Maybe someone will have an idea. If not, I'll be home in about 4 hours, so I can test it online then and see what I come up with.

For the moment, you could either disable the !$istok line by putting a semicolon (;) in front of that line and then /nick will work, or you can just not have it work with /nick for now. Note that if you disable that line, anyone who changes their nick would suddenly become available. That is what that line is supposed to prevent.

Sorry I can't find the problem with it right now.


Invision Support
#Invision on irc.irchighway.net
Re: Need help with "!avail" thing... #132072 07/10/05 05:52 PM
Joined: Oct 2005
Posts: 126
PhyxiuS Offline OP
Vogon poet
OP Offline
Vogon poet
Joined: Oct 2005
Posts: 126
Ok, When u got MSN, add me: Phyxius_UT@hotmail.com
Else, write a msg... check the /nick code & if u found it past it in here, i will msg back as soon as possible...


If you mess with the best, u will die like the rest !
Re: Need help with "!avail" thing... #132073 07/10/05 09:34 PM
Joined: Oct 2004
Posts: 8,327
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,327
Ok, found the problem. There was still one $chan in the /nick part. You didn't mention that it was giving an error about no such channel. smile

Code:
on *:nick: {
  if (!$istok($remove($chan(#yourchan).topic,44),$nick,32)) { return }
  var %topic = $remove($chan(#yourchan).topic,$nick $+ $chr(44),$nick)
  var %topic = $iif($right(%topic,1) == $chr(44),$left(%topic,-1),%topic)
  if ($gettok(%topic,2,58) == $null) { var %topic = Available: $newnick }
  else var %topic = %topic $+ , $newnick
  topic #yourchan %topic
}


Change all the #yourchans.


Invision Support
#Invision on irc.irchighway.net
Re: Need help with "!avail" thing... #132074 08/10/05 04:32 AM
Joined: Feb 2004
Posts: 2,019
FiberOPtics Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
Quote:
Change all the #yourchans.


Just a small tip:

If you would specify at the beginning of the code: var %chan = #yourchan, and reference %chan subsequently, then he can just change the #yourchan there, and have it updated everywhere else automatically. In contrary, now one needs to look for all references of #yourchan and change them.

I know it's a detail, though it's actually quite handy.


Gone.
Re: Need help with "!avail" thing... #132075 08/10/05 09:34 AM
Joined: Oct 2005
Posts: 126
PhyxiuS Offline OP
Vogon poet
OP Offline
Vogon poet
Joined: Oct 2005
Posts: 126
Yeh, but i only need it for 1 channel... So, Riamus's script is ok for me... Now it's only in our Private Channel ... & uuhm, Thankx Riamus, the "nick" thingy is working now! Thankx wink


If you mess with the best, u will die like the rest !
Re: Need help with "!avail" thing... #132076 08/10/05 01:16 PM
Joined: Feb 2004
Posts: 2,019
FiberOPtics Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
No you don't get what I'm saying. But that's ok.


Gone.
Re: Need help with "!avail" thing... #132077 10/10/05 02:37 PM
Joined: Oct 2004
Posts: 8,327
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,327
Good point, FiberOPtics. I have that on my major scripts. This one kind of evolved from a very small script to something larger, so I didn't think to add that to it. Oh well. As you said, it's just a detail. laugh


Invision Support
#Invision on irc.irchighway.net
Page 2 of 2 1 2