mIRC Home    About    Download    Register    News    Help

Active Threads | Unanswered Past 24 hours | Past 48 hours | Past Week | Past Month | Past Year
Scripts & Popups
Ban enforcer with kick limit Simo Yesterday at 01:56 PM
Hey there,

i was trying out this ban enforcer and couldnt get it to halt when the amount of nicks the banmask matched exceeds 2

the : if (%kick) { kick $chan %kick «-Banned-» } still executes anuway to halt that as well when $numtok(%kick,44) > 2.


Code

ON *:ban:#test:{ 
  if ($nick(#,$me,~&@%)  || o isin $usermode ) { 
    var %ixz = 1 
    while ($ialchan($banmask,$chan,%ixz).nick != $null)  { 
      var %user =  $v1
      if (!$nick($chan, %user ,@&%+) && !$istok( $me , %user ,32)  && %user ison $chan) { var %kick = $addtok(%kick,%user,44) }
      if ($numtok(%kick,44) > 2) { break | mode $chan -b $banmask | unset %kick }
      if ($numtok(%kick,44) == 4) { kick $chan  %kick «-Banned-» | unset %kick }
      inc %ixz 
    }
    if (%kick) { kick $chan  %kick «-Banned-» }
  }
}



0 20 Read More
Bug Reports Jump to new posts
Re: $urlget Khaled Yesterday at 08:23 AM
Thanks for your bug report. WinINet is reporting a decode error when "deflate" is specified in the Accept-Encoding header on this particular website. I have not been able to reproduce this on other sites, so it seems that the implementation of deflate on this website is different from WinINet's version, which is a bit odd. In any case, I have changed $urlget() so that in the case of a decode error, it will retry the connection without compression, which resolves the issue in this case. This change will be in the next version.
1 64 Read More
Scripts & Popups
website text script NewzNZ 23/11/25 08:36 AM
Hi there

I have some scripts to pull headlines etc from various news feeds.

Am currently using:
if (some-text-here isin %temp) {

to identify the line of text I want to use, but some of the sites have more of an RSS format and don't have unique lines or codes to identify them.

Just wondering if there's a way to pull a specific line number from a page? e.g. in a tcl script used on an eggdrop bot, it's [lindex [split $data \n] 6] where line 6 is the number.

Thanks in advance for any help...
0 40 Read More
Bug Reports Jump to new posts
$urlget deVilbaT 22/11/25 09:17 AM
Data cannot be retrieved via $urlget. This seems to be a bug because data is retrieved via sockread.

Fails & no data, except the urlget().reply now says code 200 and success.
Affects both win7 and win10.

Could possibly be looking for a content-length header for example?
Just guessing tho.

Quote
alias w1 {
;bset -t &header 1 Connection: close $+ $lf $+ Host: geocoding-api.open-meteo.com $str($lf,2)
noop $urlget(https://geocoding-api.open-meteo.com/v1/search?name=berlin&count=10,bgi,&w,w2)
;noop $urlget(https://geocoding-api.open-meteo.com/v1/search?name=berlin&count=10,bgi,&w,w2,&header)
}
alias w2 {
echo -s * $urlget($1).state * $urlget($1).method * $urlget($1).reply
if ($urlget($1).state == ok) {
echo -s $v1
}
}

Regards.
1 64 Read More
Bug Reports Jump to new posts
Re: Bug with dialog window and center style Khaled 21/11/25 10:44 AM
Thanks for your bug report. This issue has been fixed for the next version.
1 86 Read More
Feature Suggestions Jump to new posts
Re: Add IDN (Unicode Domain) Support in mIRC WanderfuLL 20/11/25 05:27 PM
Thank you very much for adding IDN support to mIRC.
This feature will be incredibly helpful for many users around the world, and I truly appreciate your quick response and willingness to improve mIRC.

Thanks again for your great work and continuous dedication.
1 299 Read More
Bug Reports Jump to new posts
Bug with dialog window and center style Legless 19/11/25 05:32 PM
Found a bug with the dialog window and using "center" style on lines of text. If I hide the display for the text then check the visible option via a $did(id).visible, it ALWAYS returns $true if the "center" style was used in the dialog window. Included a little test script below to demonstrate what I mean:
Code
alias testWindow {
  if ($dialog(testWindow)) { dialog -x testWindow }
  dialog -m testWindow testWindow
}

dialog testWindow {
  title "Test Window"
  size -1 -1 100 100
  option dbu
  text "Test Text 1", 1, 6 6 88 118, center
  text "Test Text 2", 2, 6 14 88 118
}

on 1:dialog:testWindow:init:*:{
  ; hide both lines of text in dialog window
  did -h $dname 1,2
  ; display visibility properties for both lines of text
  echo -a Test Text 1 Visible: $did(1).visible
  echo -a Test Text 2 Visible: $did(2).visible
}
If you run this you'll see that even though I hide the text with "did -h $dname 1,2", it still shows using "$did(1).visible", that Test Text 1 is visible, due to having the center style.
1 86 Read More