mIRC Home    About    Download    Register    News    Help

Print Thread
#111349 15/02/05 01:42 AM
Joined: Feb 2005
Posts: 194
A
Vogon poet
OP Offline
Vogon poet
A
Joined: Feb 2005
Posts: 194
Hey. I just regesterd my nick on my server's NickServ. Everytime I connect, it querys me and asks me for my password. I was able to download a code from the server's website that automatically replies to the query with my password. However, is there a way to automatically close a query sent by NickServ 3 seconds after it pops up? I'm sure this is very difficult if even possible. I'd greatly appreaciate any reply. This problem is WAY over my head. Thanks in advance!


"God sometimes puts us in the dark for us to see the light"
#111350 15/02/05 01:46 AM
Joined: Mar 2004
Posts: 359
L
Fjord artisan
Offline
Fjord artisan
L
Joined: Mar 2004
Posts: 359
Code:
on 1:open:?: { if ($network == [color:green]NETWORKNAME[/color]) && ($nick == NickServ) { .timer 1 3 close -m $nick } }


change NETWORKNAME to the name of the network ( you can get this by typing //echo $network }

#111351 15/02/05 01:46 AM
Joined: Feb 2005
Posts: 34
K
Ameglian cow
Offline
Ameglian cow
K
Joined: Feb 2005
Posts: 34
Try this
Code:
  

on ^*:text:*:?: {
if ($nick == NickServ) { timer 1 3 close -m NickServ }
}


thank you LostServ smile

Last edited by k1tkra04; 15/02/05 01:48 AM.
#111352 15/02/05 01:47 AM
Joined: Mar 2004
Posts: 359
L
Fjord artisan
Offline
Fjord artisan
L
Joined: Mar 2004
Posts: 359
Quote:
Try this
Code:
  

on ^*:text:*:?: {
if ($nick == NickServ) { timer 1 3 close -m NickServ }
}


open is a bit better

#111353 15/02/05 02:12 AM
Joined: Nov 2004
Posts: 332
R
Fjord artisan
Offline
Fjord artisan
R
Joined: Nov 2004
Posts: 332
on *:text:*:?:{
if ($nick == nickserv) {
closemsg $nick
}
}
you will more than likely need to work the autopass code you have in to this


The Kodokan will move you, one way or another.
#111354 15/02/05 02:15 AM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Why not just prevent the window from opening altogether?

Code:
on ^*:open:?:*nickname belongs to*:{
  if ($nick == nickserv) { 
    nickserv identify [color:red]pass[/color]
    halt
  }
}


New username: hixxy
#111355 15/02/05 04:41 AM
Joined: Sep 2004
Posts: 237
Fjord artisan
Offline
Fjord artisan
Joined: Sep 2004
Posts: 237
Similar type of question. And yes i am a paranoid person so i dont store any passwords in any way....
Code:
 on *:Connect: { /msg nickserv identify $$?*"Nick Password" | /join #myChan | /msg chanserv IDENTIFY #myChan $$?*="myChan Password" }
 

That works great for what i want with one problem, if i ping out or something and im not around the computer when it reconnects it halts at the nick password dialog waiting for a reply. And since i do join other channels when i connect to this network it also prevents the other channels from being joined till both passwords have either been entered or cancel is selected. So can i have these dialogs requesting passwords appear then after x time close , assuming that if i havent put in a password in x time i am not around to do so?

#111356 15/02/05 07:21 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Try checking $away or maybe $idle if you don't set yourself away.
Code:
on *:Connect:{
  if !$away { nickserv identify $$?*"Nick Password" }
  join #myChan
  if !$away { chanserv IDENTIFY #myChan $$?*="myChan Password" }
}

#111357 15/02/05 07:33 AM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Code:
dialog PWEnter {
  title "Password Entry"
  size -1 -1 150 40
  option dbu
  button "&Ok", 1, 99 28 25 12, ok
  box "Enter Password...", 2, 1 1 149 24
  edit "", 3, 3 10 145 10, result pass autohs
  button "&Cancel", 4, 125 28 25 12, cancel
}
on *:dialog:PWEnter:close:*:{ .timerclosePW off }
alias myidentify {
  .timerclosePW 1 10 dialog -c PWEnter
  .msg nickserv identify $$dialog(PWEnter,PWEnter)
}
on *:connect:{ myidentify }


New username: hixxy
#111358 15/02/05 07:54 PM
Joined: Sep 2004
Posts: 237
Fjord artisan
Offline
Fjord artisan
Joined: Sep 2004
Posts: 237
Thanks, both of those work great..... now i just need to figure out what one i prefer. wink

#111359 16/02/05 01:53 AM
Joined: Feb 2005
Posts: 194
A
Vogon poet
OP Offline
Vogon poet
A
Joined: Feb 2005
Posts: 194
Thanks All. Makes life soooo much easier. :tongue:


"God sometimes puts us in the dark for us to see the light"

Link Copied to Clipboard