mIRC Home    About    Download    Register    News    Help

Print Thread
Page 2 of 2 1 2
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
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
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 !
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
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
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 !
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
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
Joined: Feb 2004
Posts: 2,019
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.
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 !
Joined: Feb 2004
Posts: 2,019
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.
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
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

Link Copied to Clipboard