mIRC Home    About    Download    Register    News    Help

Active Threads | Unanswered Past 24 hours | Past 48 hours | Past Week | Past Month | Past Year
Bug Reports Jump to new posts
Re: Issue with set variable in version 7.67 err0r007 Yesterday at 02:07 PM
Thank you for the information.
5 222 Read More
Scripts & Popups Jump to new posts
Re: write to a file Epic 15/10/21 06:40 AM
Originally Posted by danielboom
i want save the notify list on file , how i do ?

You can try using a script like this:
alias rept {
  var %nf_path = C:\i\mirc\files\list_notify.txt
  if ($exists(%nf_path)) .remove %nf_path
  var %xi 1 | while (%xi <= $notify(0)) { .write -i %nf_path $notify(%xi) | inc %xi }
  .echo -a 03The list notify has been compiled. Total:07 $lines(%nf_path) 03users.

To check, enter the command: "/rept".

For more information about the commands used in this script and how to use them correctly, you can read here:

    https://en.wikichip.org/wiki/mirc/commands/while or https://www.mirc.com/help/html/index.html?aliases.html#cmd_while
    https://en.wikichip.org/wiki/mirc/commands/write or https://www.mirc.com/help/html/index.html?mirc_commands.html#cmd_write
    https://en.wikichip.org/wiki/mirc/commands/notify or https://www.mirc.com/help/html/index.html?notify_list.html#cmd_notify
    https://en.wikichip.org/wiki/mirc/identifiers/$notify or https://www.mirc.com/help/html/index.html?nick_address_identifiers.html#id_$notify
    https://en.wikichip.org/wiki/mirc/identifiers/$lines or https://www.mirc.com/help/html/index.html?file_directory_identifiers.html#id_$lines

1 56 Read More
Bug Reports Jump to new posts
Re: disconnecting not updating status window icon Khaled 14/10/21 12:07 PM
Thanks this has been fixed for the next version.
1 69 Read More
Bug Reports Jump to new posts
Re: /hop [message] bug, or clarification needed. Khaled 14/10/21 11:35 AM
Thanks for your bug report.

I just tested this using "/debug on" to see what is sent to the server and the part message is being sent both with and without -c.

Can you show me the format of the command you are using where it does not send the part message?
1 59 Read More
Scripts & Popups Jump to new posts
Re: write list channel danielboom 12/10/21 11:57 PM
saves only one channel , thnx
2 87 Read More
Feature Suggestions Jump to new posts
Custom lines per non-@ window maroon 12/10/21 08:29 PM
Would be nice to have a way for #channel max lines to be set differently than changing the options/other/window-buffer setting.

This setting originally applied only to #channels, but later when it was changed to apply also to @windows, then /window was given a -jN switch so each window could have its own override setting.

However there doesn't seem to be a way to override the buffer setting for an individual channel, either permanent like how #channel positions can be saved permanently, or how the buffer can be set temporarily for a @window with -jN.

This would help people who keep a lot of windows open, but have only 1 of many channels that they need to have a large buffer. Right now they need to set the window buffer lines high for all channels in order to have it be large for just the 1 channel.

An alternative could be to allow /dline to work in a #channel, which would allow a maintenance script to be run on a timer to chop all non-exempt windows shorter.
0 47 Read More
Scripts & Popups Jump to new posts
Request ban script particular... krisb34213 12/10/21 01:44 PM
Hi, I don't know if it is possible to create this type of script but I will try to explain anyway.

A lot of people on the channel where I am evade bans on forbidden words using special characters and things like that.

For example, there are people who spam their contacts (let's take the telegram contact for example) by saying they offer paid photos and videos and then scam those who believe in them.

If I block the word "telegram", then they use special characters to write it and avoid the ban, for example by using 𝓣𝓮𝓵𝓮𝓰𝓻𝓪𝓶.

I would like to cut off the head of the bull and know if it is possible to create a script (with the ability to activate and deactivate it) that will ban any message that does not contain the characters entered in the script.

So, something like this: a script that contains the normal letters of the alphabet, the exlamation and question mark and the numbers (with the possibility to add and remove what you want) and which then ban any message in the channel (/say and /me also) that contains anything else: emoticons, special characters, and so on. All. Anything that is not in the script. So you can only write messages with the characters contained in the script.

Would it be possible to create such a script?
0 41 Read More
Developers Jump to new posts
Re: Link to title from channel Raccoon 12/10/21 09:31 AM
Tip. Whenever you see the verb .* in your regex pattern, you probably want .*? instead. At least 99% of the time.

.* -- Will gobble up the entire webpage from beginning to end, and then slowly back track one letter at a time until it finds a match.
.*? -- Will march forward one letter at a time until it finds a match, in the normal intuitive way you probably imagine it should.

Compare: .*?

//echo -a $regex(blah blah <title>The quick brown fox jumps over the lazy dog.</title>lol sucker!</title> blah blah, <title>(.*?)</title>) -> $regml(1)
1 -> The quick brown fox jumps over the lazy dog.

and: .* without ?

//echo -a $regex(blah blah <title>The quick brown fox jumps over the lazy dog.</title>lol sucker!</title> blah blah, <title>(.*)</title>) -> $regml(1)
1 -> The quick brown fox jumps over the lazy dog.</title>lol sucker!

You can also add a sanity check to tell the match to give up if it's going to be unrealistically long to find a match. Say, 256 or 512 or 1024 characters. Up to you.

.{1,1024}? is the same as .*? but better.

To make the final output variables a sane length as well, you should use $left() to trim them down if they're too long.

var %title = $left(%title,256), %desc = $left(%desc,256)
1 77 Read More