Comments (10)
memo: ctcp.mrc - line 409 - alias ping
Error:
- Each spread out @ping [N] Channel window contains only one ping reply instead of all replies for one channel going into one window
from peace-and-protection.
from peace-and-protection.
memo: window.mrc - line 92 - alias _mservwin
alias _mservwin {
var %cid = $3
if (!%cid) %cid = $cid
var %num = 1
; String to match
var %match = /^ $+ $_escape(
while (%num <= $window(0)) {
if ($regex($window(%num),%match)) {
if ($window(%num).cid == %cid) return $window(%num)
}
inc %num
}
; Create new window
if ($window(
%num = 2
while ($window(
inc %num
}
return
}
memo: aliases.mrc - line 33 - alias _escape
; Escapes all non-alpha characters
_escape var %text = $1- | var %junk = $regsub(%text,/([^a-zA-Z0-9 ])/g,\1,%text) | return %text
; Replaces all non-alpha characters
escape2 var %text = $1- | var %junk = $regsub(%text,/([^a-zA-Z0-9])/g,,%text) | return %text
from peace-and-protection.
In window.mrc - line 105 - alias _mservwin change:
if ($window(
to
if ($window(
from peace-and-protection.
In this particular case $chr(160) should already be part of $2. If hardcoded in, will it not break everything else using the _mservwin alias?
from peace-and-protection.
you're right :) but for some reason $chr(160) doesn't get passed.
This works as well:
if ($window(
I find it very strange.
Can you reproduce the error wildcraze or am I the only with this error on mIRC 7.43 and pnp.4.22.3?
from peace-and-protection.
It breaks the intended function of _mservwin which is to assign a window name with the lowest number not taken.
In effect the suggested change is just using var %win = @Ping $+ $chr(160) $+ %target
in the ctcp file (L520) instead of calling the _mservwin alias.
Subsequent pings to a channel, where a new window would make sense, would all end up in the same @Ping
window as duplicates.
from peace-and-protection.
That's right. I'm merely trying to diagnose why it's not working as intended on my system. I have for the moment changed line 475 and line 520 in ctcp.mrc and removed the string $chr(160) $+
so that line 475 reads:
var %win = $_mservwin(@Ping,%ping)
and line 520 reads:
var %win = $_mservwin(@Ping,%target)
Now this seems to work fine. All ping replies go to one @ping window. I don't have to change anything in alias _mservwin either. Btw craze, from your comments I infer that you don't have this bug on your system. Is that correct?
from peace-and-protection.
Appears $regsub behaves a bit different before and after Unicode release of mIRC. Adding (*UTF) to regular expressions responsible for matching window names appears to fix this issue, and is currently being tested.
from peace-and-protection.
Fixed in next release, 4.22.6
from peace-and-protection.
Related Issues (20)
- HOTLINK HOT 8
- first,mrc missing from script folder HOT 1
- Cannot load on mirc 7.52 HOT 2
- on changing lang HOT 2
- mIRC sets $numeric == 0 for non-numeric raws causing PnP to display no/strange output (for example on raw AWAY:*:{}) HOT 3
- PnP fails to reload script\addon320.mrc if it's needed but not loaded
- reroute.ppa - PnP not rerouting from correct network to correct network HOT 1
- Problem with users- count > 100% HOT 3
- Font 'Consolas' missing- Apply theme anyways? HOT 2
- When loading a (dark, i.e. not-white) theme, the background and text colour for the Treebar is not updated... HOT 1
- 'Sample message' in Pnp Options > Messages is not showing HOT 6
- $:minmircver exists in an alias file, so is not read on the on load event when first installing PnP
- Disable /who on connect HOT 3
- Remote code execution vulnerability upon pressing quick function key (spamblck.ppa) HOT 4
- EZ-ping Addon: PNP reacts to phrases like "helping me" or "stopping me" HOT 2
- Server does not recognize _UPD.TITLE command HOT 2
- dialog { option map } will make dialogs usable on monitors with high resolution, where DPI scaling is used HOT 9
- MOTD skewed on for example irc.efnet.nl (windmill) HOT 9
- Anti-idle feature not working when PRIVMSG is upgraded by mIRC to CPRIVMSG (Undernet for example) HOT 3
- * Loaded script 'C:\mIRC\script\first.mrc', * /hmake: hash table exists 'pnp.1' (line 821, first.mrc) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from peace-and-protection.