mIRC Home    About    Download    Register    News    Help

Print Thread
#70878 10/02/04 01:22 AM
Joined: Dec 2002
Posts: 174
K
Kev_Uk Offline OP
Vogon poet
OP Offline
Vogon poet
K
Joined: Dec 2002
Posts: 174
Hi i have a script that can retrieve your nickname when it becomes available through the Notify list which it will identify with NickServ then leave the channel and re-enter to gain ops.

But how do i add something on to the code so if it's on UnderNet Network it doesn't try and identify with nickserv and leave the channel, as UnderNet doesn't have a NickServ, so it would cause problems.

As i have the code set to hop the channel how do i go about maybe even changing that so it ask ChanServ to op me rather then hopping, as some people have revolving door scripts these days.

on *:UNOTIFY: {
if ($notify($nick).note = Take Nickname) {
nick $nick
nickserv identify password
//var %i = 1 | while $chan(%i) { hop -cn $ifmatch regaining ops | inc %i }
}
}

Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Try this
Code:
on *:UNOTIFY: { 
  if ($notify($nick).note = Take Nickname) { 
    nick $nick
    if $network != undernet {
      nickserv identify password
      var %i = 1 | while $chan(%i) { chanserv op $ifmatch $me | inc %i } 
    }
  } 
}


Edit: added a missing }

Last edited by Iori; 10/02/04 01:50 AM.
Joined: Dec 2002
Posts: 174
K
Kev_Uk Offline OP
Vogon poet
OP Offline
Vogon poet
K
Joined: Dec 2002
Posts: 174
Thanks Lori, but wouldn't i need the

var %i = 1 | while $chan(%i) { chanserv op $ifmatch $me | inc %i }

before the

if $network != undernet

As i tend to connect to 3 networks at the same time.

Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Well, "if $network != undernet " means NOTundernet, so no you need that line before the *serv commands. :[/b])

BTW see the edit on the previous post.

Last edited by Iori; 10/02/04 01:53 AM.
Joined: Dec 2002
Posts: 174
K
Kev_Uk Offline OP
Vogon poet
OP Offline
Vogon poet
K
Joined: Dec 2002
Posts: 174
Doesn't seem to work that well, seems to flood the status window in whatever nickname i did have

[ PhaZeNet ] - ChanServ: Nick dsasdads isn't currently in use.
[ PhaZeNet ] - ChanServ: Nick dsasdads isn't currently in use.
[ PhaZeNet ] - ChanServ: Nick dsasdads isn't currently in use.
[ PhaZeNet ] - ChanServ: Nick dsasdads isn't currently in use.

when i change my nickname on UnderNet it seems to work fine, must be a loop error on other networks.

Last edited by Kev_Uk; 10/02/04 02:33 AM.
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Whoops sorry. This should work better.
Code:
on *:UNOTIFY: { 
  if ($notify($nick).note = Take Nickname) { nick $nick }
}
on me:*:nick:{
  if $network != undernet {
    nickserv identify password
    var %i = 1 | while $chan(%i) { chanserv op $ifmatch $me | inc %i } 
  }
}

It's all going to prevent you from changing away from a "Take Nickname" nick though.

Joined: Dec 2002
Posts: 174
K
Kev_Uk Offline OP
Vogon poet
OP Offline
Vogon poet
K
Joined: Dec 2002
Posts: 174
Nope still not joy

[ PhaZeNet ] - NickServ: Your nick isn't registered.
[ PhaZeNet ] - ChanServ: Nick Kev_UK isn't currently in use.
[ PhaZeNet ] - ChanServ: Nick Kev_UK isn't currently in use.
[ PhaZeNet ] - ChanServ: Nick Kev_UK isn't currently in use.
[ PhaZeNet ] - ChanServ: Nick Kev_UK isn't currently in use.
[ PhaZeNet ] - ChanServ: Nick Kev_UK isn't currently in use.
[ PhaZeNet ] - NickServ: This nickname is registered and protected. If it is your
[ PhaZeNet ] - NickServ: nick, type /msg NickServ IDENTIFY password. Otherwise,
[ PhaZeNet ] - NickServ: please choose a different nick.
[ PhaZeNet ] - NickServ: If you do not change within one minute, I will change your nick.
[ PhaZeNet ] - NickServ: Password accepted - you are now recognized.
[ PhaZeNet ] - ChanServ: Nick kevuktest isn't currently in use.
[ PhaZeNet ] - ChanServ: Nick kevuktest isn't currently in use.
[ PhaZeNet ] - ChanServ: Nick kevuktest isn't currently in use.
[ PhaZeNet ] - ChanServ: Nick kevuktest isn't currently in use.
[ PhaZeNet ] - ChanServ: Nick kevuktest isn't currently in use.

It's still flooding my mirc out, not sure if it's a conflict being on so many networks at the same time only reason i chose to have the notify incase of netspilts of my nickname changing to ghost if i was afk

Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Damn I'm going to sleep :tongue:
This line
var %i = 1 | while $chan(%i) { chanserv op $ifmatch $me | inc %i }
Should be
var %i = 1 | while $chan(%i) { chanserv op $ifmatch $newnick | inc %i }

Joined: Feb 2004
Posts: 1
A
Mostly harmless
Offline
Mostly harmless
A
Joined: Feb 2004
Posts: 1
Looks like something usefull.

Lost my nick for some time ago.. want to retrieve it. But the only problem is that i´m a total noob in mirc or scripting. So i can unfortunatly not use above examples..

Need to know a little more..
Where in the code do i write the name that should be retreived
Where would i place the script
Do i have to add the name to "Notify list"

confused

Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
All you should need for that is...
Code:
on !*:unotify:if $nick == [color:blue]NickYouWant[/color] { nick $nick }

Obviously, NickYouWant should be changed to the nickname you want to retrieve. laugh
Copy/Paste that into Remotes (Alt+R), and yes you need to add the nick to notify.


Link Copied to Clipboard