Jump to content

Clan tag protection?


Mophead

Recommended Posts

on *:SIGNAL:mta.join:{
 if (-XW-* iswm $mta.name($1,$2)) {        (  or if (-XW- isin $mta.name($1,$2)) {  )
   var %a = 1
   while (%a <= $lines(members.txt)) {
     if ($mta.name($1,$2) == $read(members.txt,%a)) !break
     !inc %a
   }
   if (%a == $lines(members.txt) && $lines(members.txt) > 0) {
     mta.kick $1 $2
   }
}

Link to comment
on *:SIGNAL:mta.join:{
 if (-XW-* iswm $mta.name($1,$2)) {        (  or if (-XW- isin $mta.name($1,$2)) {  )
   var %a = 1
   while (%a <= $lines(members.txt)) {
     if ($mta.name($1,$2) == $read(members.txt,%a)) !break
     !inc %a
   }
   if (%a == $lines(members.txt) && $lines(members.txt) > 0) {
     mta.kick $1 $2
   }
}

why not just:

   if (clan isin $mta.name($1,$2)) {
     if !$read(members.txt,w,$mta.name($1,$2)) {
       mta.kick $1 $2
     }
   }

Link to comment

Can you make it so I can add members and remove then from the list,

like

!addmember -XW-Bilbo

-XW-Bilbo added to -XW- Member list....

!removemember -XW-Bilbo

-XW-Bilbo has been removed from -XW- member list....

and it adds them to the members.txt itself and delets them itself.

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...