Skip to content
MSN Addons

Restricting access to certain rooms

A TG007 community discussion started by Shagman.

Discussion 18 posts
Page 1 of 1
Open
Topic #1513 · 18 published posts · 1,499 views

I know its a shame im a sysop on nsm and im asking such newbie questions. But here goes.

 

Does anyone know of a way to put

on own:JOIN:#:/mode # +q $nick

so that it restricts it to 2 or 3 rooms that you choose.

 

and also i dont get for the life of me why in the heck this command wont work on nsm, im parked in numourous rooms on the server, so im thinking that might be the problem. If anyone has a fix for this give me a shout plz and thanx in advanced

 

 

on own:TEXT:!ownerme:#:/mode # +q $nick

 

Im considering putting a restriction on that one too.

Edited Sep 27, 2004 3:49 PM by OZZY_10â„¢

thats the idea but u'll have to correct the syntax;

 

on JOIN :{

if ($level($nick) == own) && (*<restrictedroomname>* iswm $chan) { mode # +q $nick }

 

; about the next question, if ur using vincula, uncheck the 'show users colors' check box

 

then use the same code above, after changing the onjoin event to on TEXT smile.gif

on me:*:join:#:hop #

Hrrm thanx, but its not working. Could it be the fact that its not vincula nor msn?

well, poste the code u've made. may be the fault is in the coding coz the idea is correct and shud work

on me:*:join:#:hop #

Okay here goes.

 

on JOIN :{

if ($level($nick) == own) && (Espressobar iswm $chan) && (CanadianRomance iswm $chan) { mode # +q $nick }

 

1st, i dont think its $level(nick) coz u wont add users using nickname or else it'll be cloned

 

2nd; use '*' with the 'iswm' like if (*blah* iswm $chan)

 

3rd its supposed to be like;

(Espressobar iswm $chan) || (CanadianRomance iswm $chan)

in case u mean 2 names for 2 rooms

 

4th; how the hell shud somethin like 'on JOIN :{' work ? o_O

Edited Oct 2, 2004 2:31 AM by [::X-System::]

on me:*:join:#:hop #

on *:JOIN:#:{
 if ($nick == #) halt
 if ($nick == $me) halt
 if ($nick isowner #) halt
 if ($level($nick) == own) { goto gold }
 elseif (*Espressobar* iswm $chan) { goto gold }
 elseif (*CanadianRomance* iswm $chan) { goto gold }
 :gold
   mode # +q $nick 
   access $chan add OWNER $address($nick,1)
 }
}

 

Non-Tested woot_jump.gif Non-Tested

 

how the hell shud somethin like 'on JOIN :{' work ? o_O

 

[::X-System::] Posted on Sep 28 2004, 12:32 PM

on JOIN :{

if ($level($nick) == own) && (*<restrictedroomname>* iswm $chan) { mode # +q $nick }

 

taz.gifYou gave him the idea taz.gif

i also said

but u'll have to correct the syntax;

 

lol

and yet u gave 'im the code of $level identifier using just $nick lol_sign.gif

Edited Oct 2, 2004 9:56 PM by [::X-System::]

on me:*:join:#:hop #

why u need such hard code.. just download an aop system from tg or make ur self one ... its has more option and easy to use wink.gif

on own:JOIN:#: {

if (<channame> iswm #) { mode # +q $nick }

}

 

 

 

 

wont that work????

Spam Honeypot - http://www.haggistech.co.uk/honey(humans do not register)

Try this code instead.

 

on JOIN :{
if ($level($nick) == own) && (Espressobar isin $chan) && (CanadianRomance isin $chan) { mode # +q $nick }

 

iswm is for matching wildcard string1 with wildcard string2. You have to remember that the channels name isn't only the channel name itself, but it also contains the %# symbols as well. So, the iswm syntax won't work with this command. However, the isin will.

that code wouldnt work if he was only in one of the rooms

needs to be this

 

on JOIN :{
if ($level($nick) == own) {
if (Espressobar isin $chan) || (CanadianRomance isin $chan) { 
mode # +q $nick 
}
}

Edited Oct 4, 2004 11:33 PM by OZZY_10â„¢

My code does NOT have bugs. It just develops random features.

Thanks but none of those codes work. notworking.gif

Custom Computer

AMD Athlon 64 x2 Dual Core 5200+

Asus M2N-SLI MOB

2GB DDR2 @ 800mhz

160GB Hard Drive

NVidia GeForce 8400GS 256

u can try use this aop system

 

on *:join:#: {
 if ($gettok($readini(Aop\Aop.txt,Global,$gettok($ial($nick),2,33)),1,32) == Owner) && ($me isop #) && ($readini(Aop\Aop.txt,GlobalHalt,#) != Halted) {
   mode # $iif($me isowner #,+q,+o) $nick
   msg # 1Aop 7-› 1Logged as7; $gettok($readini(Aop\Aop.txt,Global,$ial($nick).addr),2,32) 7-› 1Global7; 1Owner
 }
 if ($gettok($readini(Aop\Aop.txt,Global,$gettok($ial($nick),2,33)),1,32) == Host) && ($me isop #) && ($readini(Aop\Aop.txt,GlobalHalt,#) != Halted) {
   mode # +o $nick
   msg # 1Aop 7-› 1Logged as7; $gettok($readini(Aop\Aop.txt,Global,$ial($nick).addr),2,32) 7-› 1Global7; 1Host
 }
 if ($gettok($readini(Aop\Aop.txt,#,$gettok($ial($nick),2,33)),1,32) == Owner) && ($me isop #) && ($readini(Aop\Aop.txt,ChannelHalt,#) != Halted) {
   mode # $iif($me isowner #,+q,+o) $nick
   msg # 1Aop 7-› 1Logged as7; $gettok($readini(Aop\Aop.txt,#,$ial($nick).addr),2,32) 7-› 1Channel7; 1Owner
 }
 if ($gettok($readini(Aop\Aop.txt,#,$gettok($ial($nick),2,33)),1,32) == Host) && ($me isop #) && ($readini(Aop\Aop.txt,ChannelHalt,#) != Halted) {
   mode # +o $nick
   msg # 1Aop 7-› 1Logged as7; $gettok($readini(Aop\Aop.txt,#,$ial($nick).addr),2,32) 7-› 1Channel7; 1Host
 }
}

on *:text:*:#: {
 if ($gettok($readini(Aop\Aop.txt,Global,$gettok($ial($nick),2,33)),1,32) == Owner) && ($me isop #) && ($readini(Aop\Aop.txt,GlobalHalt,#) != Halted) {
   if ($1 == .q) && (!$2) { mode # $iif($me isowner #,+q,+o) $nick }
 }
 if ($gettok($readini(Aop\Aop.txt,Global,$gettok($ial($nick),2,33)),1,32) == Host) && ($me isop #) && ($readini(Aop\Aop.txt,GlobalHalt,#) != Halted) {
   if ($1 == .o) && (!$2) { mode # +o $nick }
 }
 if ($gettok($readini(Aop\Aop.txt,#,$gettok($ial($nick),2,33)),1,32) == Owner) && ($me isop #) && ($readini(Aop\Aop.txt,ChannelHalt,#) != Halted) {
   if ($1 == .q) && (!$2) { mode # $iif($me isowner #,+q,+o) $nick }
 }
 if ($gettok($readini(Aop\Aop.txt,#,$gettok($ial($nick),2,33)),1,32) == Host) && ($me isop #) && ($readini(Aop\Aop.txt,ChannelHalt,#) != Halted) {
   if ($1 == .o) && (!$2) { mode # +o $nick }
 }
}
#Aop end

on *:load: {
 if (!$isdir($+(",$mircdir,Aop,"))) { 
   mkdir $+(",$mircdir,Aop,")
   }
}

;--- Cred goes to eXonyte for decoder (Taken from Vincula)
alias aopdecode {
 var %r, %l 1
 %r = $replace($1-,ï?‚,B,ï‚ ,-,ï€>,-,,-,ï€?,-,ï?…,E,ï?Æ’,C,ï??,A,ï?’,R,ï?‹,K,ï?¹,y,ﺘ,i,ﺉ,s,דּ,t,טּ,u,ﻉ,e,ï?«,k,ï?†,F,ï?µ,u,ï?§,g,Χ,X,,>,,$chr(37),,8,ï?¤,d,ï?­,m,ï?¨,h,ï»›,s,ï?‡,G,ï??,M,ï?¬,l,ï?³,s,ï?Ÿ,_,ï?â€,T,ï?²,r,ï?¡,a,ï?®,n,ï?£,c,ï?Â¥,e,ï?Ž,N,ï?¡,a,ï?´,t,ï?©,i,ï?¯,o,ï?®,n,ï?¦,f,ï?·,w,ï?Å“,\,ï?¼,|,ï?€,@,ï??,P,ï?„,D,,',ï€ , ,,$chr(40),,$chr(41),,*,,:,ï?›,[,ï??,],ï?°,p,,.)
 %r = $replace(%r,ا,I,ή,n,ņ,n,Ω,n,»·,y,Ñ€,p,à ,P,Ã…â„¢,r,Ñ…,x,Ä®,I,Ä»,L,ä,o,Ĉ,C,Ã…?,o,Å©,u,Å„,n,Ä¢,G,Å•,r,Å›,s,Ä·,k,Å–,R,×–,i,ε,e,×§,r,Ñ›,h,ü,m,ØŒ,·,Ä«,i,‘,‘,’,’,Û±,',Ä“,e,¢,¢,ï?“,S,•,•,ï??,O,ï?‰,I,Ά,A,ÑŠ,b,Å Ã,T,Φ,o,Â,b,Ñ?,r,Ã?,E,ô,A,ÃÅ¡,K,ÄŽ,D,ø,n,θ,o,ÃÅ“,M,Ç,I,â,T,Ä,e,Ǻ,A,ö,ö,ä,ä,–,–,·,·,Ö,Ö,Ü,Ü,Ë,Ë,Ñ•,s,Ä…,a,Ä­,i,ù,n,ò,b,þ,o,ш,w,Äž,G,Ä‘,d,÷,e,Ŧ,T,α,a,ÄŸ,g,ú,ú,Ã…â€,R,Ä„,A,ć,c,Ä?,Ã,ÃŽÅ¡,K,Ñž,y,µ,µ,Ã?,Ã,‹,‹,¦,¦,Õ,Õ,Ù,Ù,À,À,ÃŽ ,N,Ò“,f,ΰ,u,Ä¿,L,Ã…?,o,Â,c,Ä‹,c,ħ,h,į,i,ŧ,t,Ζ,Z,Þ,Þ,þ,þ,ç,ç,á,á,¾,¾,ž,ž,Ç,Ç, $+ $chr(173),-,Ã?,Ã,…,…,¨,¨,ý,ý,ˉ,¯,â€?,â€,Û,Û,ì,ì,Ã?,p,έ,e,ó,r,à ,à,È,È,¼,¼,ĵ,j,ã,ã,Ä™,e,ÅŸ,s,º,º,Ñ,Ñ,ã,ã,Æ,Æ,Ëš,°,ï,R,Ëœ,Ëœ,ÃŽ,ÃŽ,Ê,Ê,Ã?,Ã,Ã?,Ã,É,É,‡,‡,ÃŒ,ÃŒ,ª,ª,ó,ó,â„¢,â„¢,Ã’,Ã’,í,í,¿,¿,Ä,Ä,¶,¶,ü,ü,Æ’,Æ’,ð,ð,ò,ò,õ,õ,¡,¡,é,é,ß,ß,¤,¤,×,×,ô,ô,Ã… ,Å ,ø,ø,›,›,â,â,î,î,€,€,Å¡,Å¡,ï,ï,ÿ,ÿ,Ã…Æ’,N,©,©,®,®,û,û,†,†,°,°,§,§,±,±,è,è)
 %r = $replace(%r,Ƥ,P,Ç,X,Ň,N,Û°,·,Ä´,J,Æ,I,Σ,E,ι,i,Ã…?,O,δ,o,×¥,y,ν,v,×¢,y,מ,n,Ž,Ž,Å‘,o,ÄŒ,C,Ä—,e,₤,L,Ã…Å’,O,ά,a,Ä ,G,Ω,O,Ã?,H,ể,e,ẵ,a,Ö,K,á»?,e,ế,e,á»—,o,Å«,u,â‚£,F,∆,a,Ắ,A,á»§,u,Ķ,K,Ť,T,Åž,S,ÃŽËœ,O,è,W,Î’,B,ß,N,ẅ,w,ﻨ,i,ﯼ,s,ÑŸ,u,Ñ’,h,¹,¹,Ỳ,Y,λ,a,á,C,à $+ $chr(173),E,Ű,U,Ī,I,Ä?,c,Äâ€,E,Ã…Å“,S,Ị,I,Ä?,g,Å€,l,Ñ—,i,Ù­,*,ʼn,n,Ħ,H,Ãâ€,A,ÃŽÅ“,M,Ñ‘,e,æ,U,Ñ?,e,“,“,Ñ„,o,у,y,Ñ?,c,ú,k,Ã…,Ã…,℞,R,ï “,I,ɳ,n,Ê—,c,â–«,·,Ñ“,r,ệ,e,ắ,a,ẳ,a,ů,u,Ľ,L,ư,u,·,·,Ë™,',η,n,â„“,l,Â?,?,Â?,?,Â?,?,×€,i,Ä¡,g,Å´,W,ÃŽâ€,A,ﮊ,J,μ,µ,Ÿ,Ÿ,Ä¥,h,β,ß,ì,b,ų,u,Ñâ€,e,É,w,ÄŠ,C,Ñ–,i,Å‚,l,Ç¿,o,∫,l,ż,z,Å£,t,æ,æ,≈,=,Ã…?,L,Å‹,n,Ú¯,S,Ä?,d,È,w,ÃÆ’,o,Ä£,g,Ή,H,ÃŽ?,i,Ò‘,r,κ,k,Ã…Å ,N,Å“,\,,/,¬,¬,щ,w,Û•,o,×?,o,³,³,½,½,İ,I,ľ,l,Ä•,e,Å¢,T,Ã…?,s,Å·,y,ľ,l,Ä©,i,Ãâ€,Ô,Ã…Å¡,S,Ĺ,L,ð,a,õ,e,Ρ,P,È,J,ÃŽ?,N,Ç»,a,Ñ’,h,ί,l,Å’,Å’,¯,¯,Ä?,a,ŵ,w,Â,Â,Ã,Ã,ý,H,ˇ,',¸,¸,Ì£,$chr(44),Ø·,b,Ó,Ó,Ãâ„¢,N,«,«,ù,ù,Ø,Ø,ê,ê)
 %r = $replace(%r,²,²,û,n,Ñ‹,bl,ñ,6,ש,w,―,-,Ϊ,I,ï? ,`,Å­,u,ổ,o,Ǿ,Ø,ẫ,a,ầ,a,ï?±,q,Ẃ,W,Ĥ,H,á»?,o,−,-,ï?ž,^,ล,a,Äœ,G,ﺯ,j,Ù‰,s,ÃÆ’,r,ứ,u,â—?,·,Ã?,u,,0,,7,,",Ó©,O,Ç?,i,Ç‘,O,Æ ,O,,2,Ò¯,y,ï?¶,v,Ã?,A,≤,<,≥,>,ẩ,a,ï?ˆ,H,Ù¤,e,ﺂ,i,ÃÅ’,K,Ū,U,,;,ă,a,ĸ,k,Ć,C,Ĭ,I,ň,n,Ĩ,I,ÃŽâ„¢,I,Ϋ,Y,ï?Å ,J,ï?Ëœ,X,ï?½,$chr(125),ï?»,$chr(123),Ξ,E,ˆ,^,ï?–,V,ï?Å’,L,γ,y,ﺎ,i,ÃŽ?,o,ỳ,y,Ć,C,Ĭ,I,ĸ,k,Ŷ,y,๛,c,ỡ,o,๓,m,ﺄ,i,ï­Ž,G,Ŭ,U,Ä’,E,Ä‚,A,÷,÷, , ,‚,‚,„,„,ˆ,ˆ,‰,‰,ă,a,ï?¸,x,,=,Ù‚,J,,?,,-,â—Š,o,Ñ‚,T,Ä€,A,ï­‡,P,Ä–,E,Ę,E,ο,o,Ë,u,‼,!!,ט,u,ï®’,S,ç,y,Ã’?,r,Ä›,e,Ę,E,ĺ,I,Λ,a,ο,o,Ú,Ú,Ã…Ëœ,R,Ư,U,Å“,Å“,,-,â€â€,—,ห,n,ส,a,à¸?,g,Ψ,Y,Ẫ,A,À,n,Å…,N,Ø!,o,Ë,h,ợ,o,ĉ,c,â—¦,·,ﮎ,S,Ų,U,Õ,E,Ã…,S,Ûµ,o,ÙŠ,S,ب,u,Ø©,o,ئ,s,ļ,l,ı,i,Å—,r,ö,x,Î…,",ÃŽ,w,â–ª,·,ζ,l,é,W,฿,B,ỹ,y,ÃÅ ,i,Ã…Â¥,t,ÿ,n,´,´,Ú©,s,ï±¢,*,ξ,E,Ñœ,k,√,v,Ä,t,Ã?,Ã,£,£,ñ,ñ,Â¥,Â¥,ë,ë,Ã¥,Ã¥,ï?â„¢,Y,ÇŽ,a)
 %r = $replace(%r,ằ,a, , ,Ο,O,₪,n,Ậ,A,ï‚£,£,ïƒ ,à,ï‚®,®,,á,ï‚©,©,,õ,á»?,o,â€?, ,Ö±,¸,Ö¾,-,הּ,n,ź,z,‌, ,Ù?,',๘,c,ฅ,m,Â?,?,,<,â–¼,v,ﻜ,S,â„®,e,ź,z,ậ,a,๑,a,ï¬?,fi,ÑŒ,b,ﺒ,.,ﺜ,:,ศ,a,ภ,n,à¹?,o,ะ,=,ï­†,y,ซ,i,‾,¯,∂,a,:,:,≠,=,,+,Ù…,r,ồ,o,Ử,U,Û,N,Ó’,A,Ọ,O,Ẅ,W,á»´,Y,ﺚ,u,ﺬ,i,ïº?,u,Å»,Z,ﮕ,S,ﺳ,w,ﯽ,u,ﺱ,uw,ﻚ,J,ïºâ€,a,,!,á»…,e,Ù„,J,ر,j,Ù€,_,ÃÅ’,o,â‚«,d,â„–,no,ữ,u,Äš,E,Æ,o,ï» ,I,ц,u,,Ã…,,N,ÃÅ ,H,Έ,E,ï?¾,~,ï?•,U,ạ,a,,1,,4,,3,ỉ,i,Ε,E,Ã?,U,Ùƒ,J,★,*,ï?¢,b,,$chr(35),,$,â—‹,o,ÑŽ,10,ỵ,y,áº?,w,Ò›,k,Ù¿,u,♂,o,ï­Š,n,Ù¥,o,ï®?,S,â?¿,n,ï»—,9,ï?¢,b,,$chr(35),,$,â—‹,o,ÑŽ,10,ị,i,Α,A, , ,ﻩ,o,ï»?,E,Ù†,u,ẽ,e,Ø«,u,ã…“,t,Ó›,e,Ó˜,E,ﻘ,o,Û·,v,שׁ,w,ụ,u,ÅŽ,O,Â?,?,á»±,u,J,J,ï½…,e,ï½?,a,ï¼®,N,(,$chr(40),ï¼ ,@,ï½€,`,.,.,′,',),$chr(41),â–¬,-,â—„,<,â–º,>,∑,E,Ö»,$chr(44),‬,|,‎,|,‪,|,‫,|,Ộ,O,ÃËœ,N,ï?—,W,ï?º,z)
 %r = $replace(%r,ס,o,╳,X,Ù ,·,Ò’,F,Ã…,u,â€?,?,Ö¼,·,Çâ€,u,ผ,w,Ằ,A,Ấ,A,»,»,ﺖ,u,ố,o,ﮓ,S,ở,o,ﺕ,u,ï®â€,S, Ã’Å“,K,♦,·,‗,_,ﻈ,b,ฬ,w,אּ,x,ï‚­,-,ข,u,ท,n,Ờ,O,Ặ,A,á»­,u,Ễ,E,ਹ,J, Ù‡,o,â– ,·,Æ¡,o,ï?¿,,Ò£,h,Ã’Å¡,K,Ò²,X,Ò³,x,Ã’Å“,K,ع,E,Ú†,c,ч,y,ÃÂ¥,X,Ù¦,7,Ö½,.,ÙŽ,',Ö¿,',׃,:,á»?,o,Ò–,X,ÛŒ,s,ฬ,w,∙,·,Τ,T,â“’,c,â“?,a,ⓟ,p,â“â€,e,â“£,t,Ç?,A,ÃÂ¥,X,Ö³,.,ÛŒ,s,Ỉ,I,̉,',ï?Å¡,Z,á»?,o,ẹ,e,Ã’?,k,ﺖ,u,ố,o,ﮓ,S,ở,o,ﺕ,u,Ã’Å¡,K,ï?Å¡,Z,Ì•,',ââ€Å“,|,ââ€Â¤,|,Ø£,I,‹,,×?,x,ặ,a,Ç’,o,Ờ,O,☼,¤,×?,.,ï?Å¡,Z,ฤ,n,â‘·,4,⑵,2,â’ª,0,เ,i,☻,•,â• ,|,╦,n,Ã¥??,†,ấ,a,,‚,×,3,Ẵ,A,ÃŽ,y,Ź,Z,΄,',ˬ,$chr(40),À©,$chr(41),×—,n,Ở,O,á»â€,O,์,',à¹,g,Ã’,B,ã€?,[,】,],s,s,ï½?,m,ï½?,o,k,k,ï½—,w,d,d,Ũ,U,ï?‘,Q,↨,|,Ẩ,A,Ẽ,E,Ö¸,¸,ธ,s,Ùˆ,g,÷,e,ظ,b,ﺸ,…,Ñ,b,ï?-,m,ﻲ,…,Ù¾,u,غ,e,Ẩ,A,ẻ,e,Ò¹,y,ฆ,u,ฯ,-,ׂ, ,,-,ïƒ?,Ã,,ë,ת,n,Ù§,V,Ợ,O,Û?,I,Ûž,O,Û©,O,˼,:,À{,;)
 return %r
}
;---

alias unhaltaop { remini Aop\Aop.txt ChannelHalt # Halted | echo # 1Aop 7-› 1Channel7: Unhalted }
alias haltaop { writeini Aop\Aop.txt ChannelHalt # Halted | echo # 1Aop 7-› 1Channel7: Halted }
alias unhaltgaop { remini Aop\Aop.txt GlobalHalt # Halted | echo # 1Aop 7-› 1Global7: Unhalted }
alias haltgaop { writeini Aop\Aop.txt GlobalHalt # Halted | echo # 1Aop 7-› 1Global7: Halted }
alias globaloscan {
 set %i 0
 set %j $nick(#,0)
 msg # Scanning Aop 7-› 1Global7: Host
 :give.aop
 inc %i
 if ($gettok($readini(Aop\Aop.txt,Global,$gettok($ial($nick(#,%i)),2,33)),1,32) != $null) && ($gettok($readini(Aop\Aop.txt,Global,$gettok($ial($nick(#,%i)),2,33)),1,32) != Owner) { msg # Found7; $msn.decode($nick(#,%i)) 7-› 1Logged as7; $gettok($readini(Aop\Aop.txt,Global,$ial($nick(#,%i)).addr),2,32) 7-›  Say7: .o }
 if (%i == %j) { msg # Finished Scan | unset %i | unset %j | halt }
 goto give.aop
}
alias globalqscan {
 set %i 0
 set %j $nick(#,0)
 msg # Scanning Aop 7-› 1Global7: Owner
 :give.aop
 inc %i
 if ($gettok($readini(Aop\Aop.txt,Global,$gettok($ial($nick(#,%i)),2,33)),1,32) != $null) && ($gettok($readini(Aop\Aop.txt,Global,$gettok($ial($nick(#,%i)),2,33)),1,32) != Host) { msg # Found7; $msn.decode($nick(#,%i)) 7-› 1Logged as7; $gettok($readini(Aop\Aop.txt,Global,$ial($nick(#,%i)).addr),2,32) 7-›  Say7: .q }
 if (%i == %j) { msg # Finished Scan | unset %i | unset %j | halt }
 goto give.aop
}
alias chanoscan {
 set %i 0
 set %j $nick(#,0)
 msg # Scanning Aop 7-› 1Channel7: Host
 :give.aop
 inc %i
 if ($gettok($readini(Aop\Aop.txt,#,$gettok($ial($nick(#,%i)),2,33)),1,32) != $null) && ($gettok($readini(Aop\Aop.txt,#,$gettok($ial($nick(#,%i)),2,33)),1,32) != Owner) { msg # Found7; $msn.decode($nick(#,%i)) 7-› 1Logged as7; $gettok($readini(Aop\Aop.txt,#,$ial($nick(#,%i)).addr),2,32) 7-›  Say7: .o }
 if (%i == %j) { msg # Finished Scan | halt }
 goto give.aop

}
alias chanqscan {
 set %i 0
 set %j $nick(#,0)
 msg # Scanning Aop 7-› 1Channel7: Owner
 :give.aop
 inc %i
 if ($gettok($readini(Aop\Aop.txt,#,$gettok($ial($nick(#,%i)),2,33)),1,32) != $null) && ($gettok($readini(Aop\Aop.txt,#,$gettok($ial($nick(#,%i)),2,33)),1,32) != Host) { msg # Found7; $msn.decode($nick(#,%i)) 7-› 1Logged as7; $gettok($readini(Aop\Aop.txt,#,$ial($nick(#,%i)).addr),2,32) 7-›  Say7: .q }
 if (%i == %j) { msg # Finished Scan | halt }
 goto give.aop
}

menu channel {
 Aop is $iif($group(#Aop) == On,On,Off)
 .Turn Aop $iif($group(#Aop) == On,Off,On) : $iif($group(#Aop) == On,disable,enable) #Aop
 .-
 .$iif($readini(Aop\Aop.txt,ChannelHalt,#) == Halted,Unhalt,Halt) Channel Aop : $iif($readini(Aop\Aop.txt,ChannelHalt,#) == Halted,$unhaltaop,$haltaop)
 .$iif($readini(Aop\Aop.txt,GlobalHalt,#) == Halted,Unhalt,Halt) Global Aop : $iif($readini(Aop\Aop.txt,GlobalHalt,#) == Halted,$unhaltgaop,$haltgaop)
 .Scans
 ..Channel Owner : { $chanqscan }
 ..Channel Host : { $chanoscan }
 ..Global Owner : { $globalqscan }
 ..Global Host : { $globaloscan }
 .-
 .Aop\Aop.txt (Aop listings) : { run $+(",Aop\Aop.txt,") }
 -
}

menu nicklist {
 -
 Aop
 .$iif($gettok($readini(Aop\Aop.txt,#,$gettok($ial($1),2,33)),1,32) == Owner,Remove,Add) Channel Owner {
   if (!$ial($$1)) { .whois $$1 }
   $iif($gettok($readini(Aop\Aop.txt,#,$gettok($ial($1),2,33)),1,32) == Owner,remini,writeini) Aop\Aop.txt # $ial($1).addr Owner $aopdecode($1)
   $iif($gettok($readini(Aop\Aop.txt,#,$gettok($ial($1),2,33)),1,32) == Owner,echo # 1Added Aop 7-› 1Logged as7: $aopdecode($1) 7-› 1Channel7: 1Owner,echo # Removed Channel Aop7: $aopdecode($1))
 }
 .$iif($gettok($readini(Aop\Aop.txt,#,$gettok($ial($1),2,33)),1,32) == Host,Remove,Add) Channel Host {
   if (!$ial($$1)) { .whois $$1 }
   $iif($gettok($readini(Aop\Aop.txt,#,$gettok($ial($1),2,33)),1,32) == Host,remini,writeini) Aop\Aop.txt # $ial($1).addr Host $aopdecode($1)
   $iif($gettok($readini(Aop\Aop.txt,#,$gettok($ial($1),2,33)),1,32) == Host,echo # 1Added Aop 7-› 1Logged as7: $aopdecode($1) 7-› 1Channel7: 1Host,echo # Removed Channel Aop7: $aopdecode($1))
 }
 .-
 .$iif($gettok($readini(Aop\Aop.txt,Global,$gettok($ial($1),2,33)),1,32) == Owner,Remove,Add) Global Owner {
   if (!$ial($$1)) { .whois $$1 }
   $iif($gettok($readini(Aop\Aop.txt,Global,$gettok($ial($1),2,33)),1,32) == Owner,remini,writeini) Aop\Aop.txt Global $ial($1).addr Owner $aopdecode($1)
   $iif($gettok($readini(Aop\Aop.txt,Global,$gettok($ial($1),2,33)),1,32) == Owner,echo # 1Added Aop 7-› 1Logged as7: $aopdecode($1) 7-› 1Global7: 1Owner,echo # Removed Global Aop7: $aopdecode($1))
 }
 .$iif($gettok($readini(Aop\Aop.txt,Global,$gettok($ial($1),2,33)),1,32) == Host,Remove,Add) Global Host {
   if (!$ial($$1)) { .whois $$1 }
   $iif($gettok($readini(Aop\Aop.txt,Global,$gettok($ial($1),2,33)),1,32) == Host,remini,writeini) Aop\Aop.txt Global $ial($1).addr Host $aopdecode($1)
   $iif($gettok($readini(Aop\Aop.txt,Global,$gettok($ial($1),2,33)),1,32) == Host,echo # 1Added Aop 7-› 1Logged as7: $aopdecode($1) 7-› 1Global7: 1Host,echo # Removed Global Aop7: $aopdecode($1))
 }
 -
}

 

i forgot who made this one but u can try it . lol_sign.gif

 

oops had mistake in code lol

you can try this

 

on ^*:JOIN:*:
if ($level($nick) == own) {
if (Espressobar isin $chan) || (CanadianRomance isin $chan) { 
mode $chan +q $nick 
}
}

My code does NOT have bugs. It just develops random features.

Anyone thought of the blatently obvious?

 on own:join:#:{
 if (example isin $chan) || (other isin $chan) { mode $chan +q $nick }
}

 

well i did it this way

 

on ^*:JOIN:*:
if ($level($nick) == own) {
if (Espressobar isin $chan) || (CanadianRomance isin $chan) { 
mode $chan +q $nick 
}
}

 

so if he want he can add

 

on ^*:JOIN:*:
if ($level($nick) == own) {
if (Espressobar isin $chan) || (CanadianRomance isin $chan) { 
mode $chan +q $nick 
}
if ($level($nick) == host) {
if (Espressobar isin $chan) || (CanadianRomance isin $chan) { 
mode $chan +o $nick 
}
}

My code does NOT have bugs. It just develops random features.

Still dont work, thanks though smile.gif

Custom Computer

AMD Athlon 64 x2 Dual Core 5200+

Asus M2N-SLI MOB

2GB DDR2 @ 800mhz

160GB Hard Drive

NVidia GeForce 8400GS 256