Comments (5)
Tested on mIRC 6.01 + PnP 4.22 and mIRC 6.01 + PnP 4.21 (both have the bug present)
from peace-and-protection.
Method 1:
Delete config for all channels by inserting (Line 1365 - config.mrc:)
hdel -w pnp.config chopt.*
Let the original code re-save all config.
Method 2:
Run through all channels stored in hashes by using $hfind(pnp.config,chopt.*,0,w) and only hdel the one that isn't listed in $did(453).lines
from peace-and-protection.
Method 2:
Method 2b:
from peace-and-protection.
hm method 1 is no longer a good workaround... hdel -w pnp.config chopt.* is not the same as running set chopt.#channel
set chopt.#channel also runs a write -ds and broadcastp command:
; `set varname [value]
; varname should not include the %`
; If we ever change this, search for cfgvar.dat as certain routines use it
`set {
if ($hget(pnp.config,$1) == $2-) return
if ($2- == $null) {
hdel pnp.config $1
write -ds [ $+ [ $1 ] ] config\ $+ $hget(pnp,user) $+ \cfgvar.dat
_broadcastp hdel pnp.config $1
}
else {
hadd pnp.config $1 $2-
write -s [ $+ [ $1 ] ] config\ $+ $hget(pnp,user) $+ \cfgvar.dat $1-
_broadcastp _`set $1
}
}
from peace-and-protection.
On line 1363 - 1373 config.mrc implement method 2b:
Before:
; Channel options
:24
var %ln = $did(453).lines
while (%ln) {
var %chan = $did(453,%ln)
if ($left(%chan,1) == $chr(40)) %chan = chopt
else %chan = chopt. $+ %chan
`set %chan $did(454,%ln)
dec %ln
}
After:
; Channel options
:24
var %ln = $did(453).lines
while (%ln) {
var %chan = $did(453,%ln)
if ($left(%chan,1) == $chr(40)) %chan = chopt
else %chan = chopt. $+ %chan
`set %chan $did(454,%ln)
dec %ln
}
; deleting channel(s)
var %chanlist = $didtok($dname,453,44),%num = $hfind(pnp.config,chopt.*,0,w)
while (%num > 0) {
var %chan2 = $right($hfind(pnp.config,chopt.*,%num,w),-6)
if (!$istok(%chanlist,%chan2,44)) { `set $hfind(pnp.config,chopt.*,%num,w) }
dec %num
}
return
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.