Skip to content
MSN Addons

Disabled Nicklist Buttons When Not Hosting.

A TG007 community discussion started by Warrior124.

Discussion 1 post
Page 1 of 1
Open
Topic #1977 · 1 published post · 394 views

Here are some controls that will be disabled when you arenot hosting.

 

menu nicklist {
   $iif($me !isowner $chan,$style(2)) Owner $1 { mode $chan +q $1 }
   -
   $iif($me !isowner $chan,$style(2)) Deowner $1 { mode $chan -q $1 }
   -
   $iif($me !isop $chan,$style(2)) Op $1 { mode $chan +o $1 }
   -
   $iif($me !isop $chan,$style(2)) Deop $1 { mode $chan -o $1 }
   -
   $iif($me !isp $chan,$style(2)) Kick $1 { kick $chan $1 [Disruption] }
   -
   $iif($me !isop $chan,$style(2)) Ban $1
   .Set Bantime { set %bantime $?="Enter Amount of Time For Ban." }
   .-
   .Ban $1
   ..$iif(!%bantime,$style(2)) $iif(!%bantime,Not Active,%bantime Minutes) {
     if ($network == MSN) { access $chan add deny $ial($1,1) %bantime | kick $chan $1 [Access Denied For %bantime] }
     else { mode $chan +b $ial($1,1) %bantime | kick $chan $1 [Access Denied For %bantime] }
   }
   ..5 Minutes {
     if ($network == MSN) { access $chan add deny $ial($1,1) 5 | kick $chan $1 [Access Denied For 5 Minutes] }
     else { mode $chan +b $ial($1,1) 5 | kick $chan $1 [Access Denied For 5 Minutes] }
   }
   ..10 Minutes {
     if ($network == MSN) { access $chan add deny $ial($1,1) 10 | kick $chan $1 [Access Denied For 10 Minutes] }
     else { mode $chan +b $ial($1,1) 10 | kick $chan $1 [Access Denied For 10 Minutes] }
   }
   ..15 Minutes {
     if ($network == MSN) { access $chan add deny $ial($1,1) 15 | kick $chan $1 [Access Denied For 15 Minutes] }
     else { mode $chan +b $ial($1,1) 15 | kick $chan $1 [Access Denied For 15 Minutes] }
   }
   ..1 Hour {
     if ($network == MSN) { access $chan add deny $ial($1,1) 60 | kick $chan $1 [Access Denied For 60 Minutes] }
     else { mode $chan +b $ial($1,1) 60 | kick $chan $1 [Access Denied For 60 Minutes] }
   }
   ..5 Hours {
     if ($network == MSN) { access $chan add deny $ial($1,1) 300 | kick $chan $1 [Access Denied For 5 Hours] }
     else { mode $chan +b $ial($1,1) 300 | kick $chan $1 [Access Denied For 5 Hours] }
   }
   ..24 Hours {
     if ($network == MSN) { access $chan add deny $ial($1,1) 14400 | kick $chan $1 [Access Denied For 24 Hours] }
     else { mode $chan +b $ial($1,1) 14400 | kick $chan $1 [Access Denied For 24 Hours] }
   }
   ..Forever {
     if ($network == MSN) { access $chan add deny $ial($1,1) 0 | kick $chan $1 [Access Denied Forever] }
     else { mode $chan +b $ial($1,1) 0 | kick $chan $1 [Access Denied For Forever] }
   }
 }
}

Edited Nov 23, 2004 2:48 AM by Warrior124