Murda Posted November 11, 2004 Report Share Posted November 11, 2004 hey guys need some real help here. im not the best of scripters but i need some help on an auto host. the thing is, i was wondering if it was possible to do a little code which worked when the person who's hostmask is added to the userlist in mirc, when he joins, he types the correct password in a whisper to get his +h. now ive asked round but no one seems to reall know so i thought id ask here see if anyone had the code or had any idea's Link to comment Share on other sites More sharing options...
The Gate Keeper Posted November 11, 2004 Report Share Posted November 11, 2004 i'll have a crack at this. Haven't actually been around IRCD but it should be the same thing. replace the things in brackets with what you want it as on <level>:TEXT:*:?: { var %t $strip($1-) | if (%t == %roompass) { /mode +h $nick } } remember to put that into remotes, and to set %roompass in your variables as what you want the speicial code to be. so in the variables, it would be something like %roompass 12345 it seems very basic, but from what i can, it does answer your question. Link to comment Share on other sites More sharing options...
Cleric xtx Posted November 11, 2004 Report Share Posted November 11, 2004 (edited) on <level>:TEXT:*:?: { if ($strip($1-) == %roompass) { /mode +h $nick } } Felt like being pidantic with TGK's code Edited November 11, 2004 by Cleric xtx Link to comment Share on other sites More sharing options...
Murda Posted November 11, 2004 Author Report Share Posted November 11, 2004 thanx guys for the reply, but ive tried it and neither of them work for some reason, been trying to figure it out and its reckin my head Link to comment Share on other sites More sharing options...
tidy trax Posted December 5, 2004 Report Share Posted December 5, 2004 (edited) on *:text:*:?:{ if ($strip($1-) == <password>) { var %i = 1 while (%i <= $comchan($nick,0)) { if ($comchan($nick,%i).op) { mode $comchan($nick,%i) +o $nick } inc %i } } } I presume you wanted to give them an @ (+o, operator) Edited December 5, 2004 by tidy trax Link to comment Share on other sites More sharing options...
Rudeboy Posted December 5, 2004 Report Share Posted December 5, 2004 (edited) on thiernick:TEXT:thierpass:?:{ /mode $comchan($nick,1) +o $nick | closemsg $nick } this would make it so they can also each have thier own pass. that way you can ramove one person without having to change the pass for the whole room. just add a new line for each user Edited June 17, 2005 by Rudeboy Link to comment Share on other sites More sharing options...
tidy trax Posted December 5, 2004 Report Share Posted December 5, 2004 Rudeboy, there is no $chan in a query. Link to comment Share on other sites More sharing options...
Ozzy10 Posted December 5, 2004 Report Share Posted December 5, 2004 on *:text:*:?:{ if ($strip($1-) == <password>) { var %i = 1 while (%i <= $comchan($nick,0)) { if ($comchan($nick,%i).op) { mode $comchan($nick,%i) +o $nick } inc %i } } } only problem with the code tidy gave , is if you were in say 2 rooms and the other person was too, it would host them in both rooms apart from that the code should work Link to comment Share on other sites More sharing options...
Murda Posted December 6, 2004 Author Report Share Posted December 6, 2004 thanx you guys that worked perfect apart from what ozzy said that it hosts in all rooms which is going to be a pain, is there any way round it, if not its all kool Thanx again Link to comment Share on other sites More sharing options...
tidy trax Posted December 6, 2004 Report Share Posted December 6, 2004 Since there's no $chan in a query, which channel would you like to op them in? 1st? 2nd? 3rd? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now