mIRC Homepage
Posted By: ozyvent Ban Dialog - 18/09/03 03:19 PM
I have a dialog with a list of channel bans.

Works:
* Ban masks added to the list if they're added by me, or anyone else..
* Removing ban masks from the list and in the channel by clicking the 'remove' button.

Doesn't work:
* Removing a ban mask from the listbox if the ban is NOT removed by clicking the remove button on the dialog.

I think it requires a while loop, but i dont get how they work.

Suggestions? Help? smile
Posted By: pheonix Re: Ban Dialog - 18/09/03 03:22 PM
on *:UNBAN:#:{
if ($dialog(name)) && ($didwm(name,id,$banmask)) {
did -d name id $didwm(name,id,$banmask)
}
}
Posted By: ozyvent Re: Ban Dialog - 18/09/03 03:26 PM
You're too kind.. Thanks again cool
Posted By: pheonix Re: Ban Dialog - 18/09/03 03:28 PM
np smile
dont forget to change name and id to the name and id of your dialog :tongue:
Posted By: ozyvent Re: Ban Dialog - 18/09/03 03:29 PM
Yeah.... my knowledge does extend that far.. hehe wink
Posted By: ozyvent Re: Ban Dialog - 18/09/03 04:13 PM
Hmm... Interesting...
Code:
did -o bans 7 $active 
doesn't work, yet
Code:
did -ra bans 7 $active
does
what gives?
Posted By: pheonix Re: Ban Dialog - 18/09/03 04:54 PM
did -o bans 7 <N> $active
<N> being the line you want to replace.
btw, just out of curiosity, is my avatar(picture) showing?
Posted By: ozyvent Re: Ban Dialog - 19/09/03 03:21 AM
ah yeah, I can see what you mean.

If your avatar is meant to be a red square, then yep, its working wink
Posted By: sparta Re: Ban Dialog - 19/09/03 05:41 PM
"I just replyed to somone" i have been playing with this bans.. and i was wondering if somone know how mirc picking up the bans in a channel? same with +e - +I .. cos if i do a /mode # +b then i get the ban list.. but its much slower then mirc's built in.. so mirc must be using somthing else.. cos if it's faster then /mode # +b , then it must use another command or somthing.. "and the /mode # +b can miss a ban in a channel from time to time"
Posted By: Collective Re: Ban Dialog - 19/09/03 05:55 PM
It uses /mode #channel +b

From debug:
-> b0rk.uk.quakenet.org MODE #channel +b
Posted By: r0ck0 Re: Ban Dialog - 19/09/03 06:07 PM
If there are no channel mode changes or topic changes or ban changes since the last time you opened channel central, mIRC won't refresh the information which is why it is faster.

If you see
* Retrieving #ChannelName info...

it's refreshing/getting the information
otherwise mIRC hasn't seen any changes and is using the information it already has.
Posted By: starbucks_mafia Re: Ban Dialog - 19/09/03 08:34 PM
To optimise your ban retrieval in the same way as mIRC does (as described in r0ck0's post) you can use $chan(#channelname).ibl to see if the bans are already listed in the internal ban list, then if they are you can use $ibl() to retrieve them instead of querying the server.
Posted By: KingTomato Re: Ban Dialog - 19/09/03 09:28 PM
Pheonix, thats lame your sucking up mircscripts bandwidth.. If you want the image, host it urself--dont be a leach.
Posted By: pheonix Re: Ban Dialog - 19/09/03 10:10 PM
if it bothered them i'm sure they wouldnt let people link to the images at all, but if one of their admins say something about it i'll gladly change it;\
Posted By: Watchdog Re: Ban Dialog - 20/09/03 02:20 AM
Looks as though someone did - all I see is a red X.
Posted By: KingTomato Re: Ban Dialog - 21/09/03 09:24 AM
lol .:D
© mIRC Discussion Forums