mIRC Home    About    Download    Register    News    Help

Print Thread
#189720 11/11/07 09:06 AM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
I use this code:
Code:
menu channel {
 &Ban list
 .$iif(!$chan($chan).ibl,$style(2) &Updating):/
 .$iif(!$ibl($chan,0) && $chan($chan).ibl,$style(2) No &bans):/
 .$submenu($chan.bans($1,$chan))
}

alias chan.bans { if ($1 isnum) && ($chan($2).ibl) && ($ibl($2,$1)) { return $+($1,. $remove($v1,:),,:rba $ibl($2,$1)) } }
alias rba {
  if ($me isop $active) { mode $active -b $1- }
  else { echo You need op to remove a ban in $active $+ . | return }
}

And it working when i open the channel central befor i look in popups, but not if i havent open it first, whats the problem and how can i solve it ?


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: Dec 2002
Posts: 503
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Dec 2002
Posts: 503
You need to update your IBL when you join a channel, just like you'd update your IAL.

See my IAL updater example here, which includes IBL updating.

Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
ty, with some modification it did what i wanted it to do smile using the same for +e and +I, easyer to see them in a menu then look in channel central smile


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: Dec 2002
Posts: 503
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Dec 2002
Posts: 503
Glad it could help you wink


Link Copied to Clipboard