mIRC Home    About    Download    Register    News    Help

Print Thread
Favorites, login registered user #256553 27/01/16 02:22 PM
Joined: Jan 2016
Posts: 1
T
Terenz Offline OP
Mostly harmless
OP Offline
Mostly harmless
T
Joined: Jan 2016
Posts: 1
When i'm click on a favorite channel, it automatically connect to the server and at the end the channel. Until that, work

Some channel require registered user and the problem is i need to login so the above procedure stop before connect to the channel because i'm not autenticated. The request is:
Is possible, when i click on the favorite channel, connect to the server, use automatically the string /msg nickserv identify password and then connect to the channel?

Thanks

Last edited by Terenz; 27/01/16 02:22 PM.
Re: Favorites, login registered user [Re: Terenz] #256564 28/01/16 02:53 PM
Joined: Feb 2015
Posts: 19
Y
Y4kuzi Offline
Pikka bird
Offline
Pikka bird
Y
Joined: Feb 2015
Posts: 19
Code:
on 1:connect:{
  if ($server == <serverhere>) {
    msg NickServ IDENTIFY password
    join $channel
  }
}


Also for security reasons I recommend using /NS or /NickServ instead of a direct /PRIVMSG request.

Last edited by Y4kuzi; 28/01/16 02:53 PM.

ProvisionIRCd - advanced mIRC based IRC daemon.
http://www.provisionircd.tk
Re: Favorites, login registered user [Re: Y4kuzi] #256583 29/01/16 09:03 PM
Joined: Dec 2008
Posts: 1,511
westor Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,511
/NS and /NickServ are IRCD aliases that are optional so its better /privmsg rather these, in case a server admin will not include them in compile.


Need Online mIRC help or an mIRC Scripting Freelancer? -> http://westor.ucoz.com/contact <-
Re: Favorites, login registered user [Re: westor] #256585 29/01/16 09:33 PM
Joined: Jan 2004
Posts: 1,317
L
Loki12583 Online
Hoopy frood
Online
Hoopy frood
L
Joined: Jan 2004
Posts: 1,317
Originally Posted By: westor
/NS and /NickServ are IRCD aliases that are optional so its better /privmsg rather these, in case a server admin will not include them in compile.

A server alias 'nickserv' may require a u-line for the nickserv user to prevent impersonation, sending a direct message to nickserv does not.

Re: Favorites, login registered user [Re: Loki12583] #256586 29/01/16 09:37 PM
Joined: Dec 2008
Posts: 1,511
westor Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,511
Yes. /NickServ and /msg NickSev is the same thing.


Need Online mIRC help or an mIRC Scripting Freelancer? -> http://westor.ucoz.com/contact <-
Re: Favorites, login registered user [Re: westor] #256587 29/01/16 09:44 PM
Joined: Jan 2004
Posts: 1,317
L
Loki12583 Online
Hoopy frood
Online
Hoopy frood
L
Joined: Jan 2004
Posts: 1,317
No. It is not.

This is a line from the InspIRCd configuration:
<alias text="NICKSERV" replace="PRIVMSG NickServ :$2-" requires="NickServ" uline="yes">

Read what the uline parameter does here: https://wiki.inspircd.org/Modules/alias

Re: Favorites, login registered user [Re: Loki12583] #256588 29/01/16 09:45 PM
Joined: Dec 2008
Posts: 1,511
westor Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,511
Ah ok you are talking for InspIRCD ..


Need Online mIRC help or an mIRC Scripting Freelancer? -> http://westor.ucoz.com/contact <-
Re: Favorites, login registered user [Re: westor] #256589 29/01/16 09:51 PM
Joined: Jan 2004
Posts: 1,317
L
Loki12583 Online
Hoopy frood
Online
Hoopy frood
L
Joined: Jan 2004
Posts: 1,317
Any daemon worth a damn would do the same thing. You should prioritize the alias for this reason, and fall back on a case-by-case basis on servers where it doesn't function. And maybe implement your own checks at that point.