Peace and Protection forum
Not logged in [Login - Register]
Go To Bottom

Printable Version  
Author: Subject: Ban/exempt/invite window
shalianahe
Junior Member
**




Posts: 5
Registered: 28-4-2010
Location: dalnet
Member Is Offline


[*] posted on 28-4-2010 at 19:10
Ban/exempt/invite window


I have installed PnP 4.22 on a Windows 7 O/s with mirc 6.35
when i look at the ban list one of 2 things happen
1)nothing seams to happen but the message [banlist is empty]
after a look at the window menu i see a long list of hiden windows each with 1 ban showing ( the number of windows is the same as the number of bans in the chan at the time)
2)I get a list of all the bans but no heading in the banlist window

when it comes to Exempts and invites ( using /mode #chan e/i ) only the 1st action happens

any one have any idea what is happening here ? and how to fix it ?

[Edited on 28-4-2010 by shalianahe]
View user's profile View All Posts By User
shalianahe
Junior Member
**




Posts: 5
Registered: 28-4-2010
Location: dalnet
Member Is Offline


[*] posted on 28-4-2010 at 23:07


narrowed it down to this part
alias -l _openlist {
var %win = $_mservwin($1,$2)


the $_mservwin alias subroutine
this checks all the window till it matches a reg expression basicly @prefix[n]-suffix, on is found with the same connection id $cid then that name is returned, if not then then a new name is made ie @prefix(n+1)-suffix

but seams to be missing the window already open and assigning a new name or
Its finds it but not the same $cid and assigning a new name

now looking at the window remote and the _mservwin alias

if anyone can help i would appreciate it
View user's profile View All Posts By User
shalianahe
Junior Member
**




Posts: 5
Registered: 28-4-2010
Location: dalnet
Member Is Offline


[*] posted on 29-4-2010 at 00:05


in the alias file is this line
; Escapes all non-alpha characters
_escape var %text = $1- | var %junk = $regsub(%text,/([^a-zA-Z0-9 ])/g,\\$1,%text) | return %text

This replaces all non-alpha[numeric] characters with \$1

some how i think this is wrong so now reading up on mirc reg expr as i am very rusty on them
View user's profile View All Posts By User
shalianahe
Junior Member
**




Posts: 5
Registered: 28-4-2010
Location: dalnet
Member Is Offline


[*] posted on 29-4-2010 at 08:30


Fix it

; Escapes all non-alpha characters
_escape var %text = $1- | var %junk = $regsub(%text,/([^a-zA-Z0-9 ])/g,\\\1,%text) | return %text

the "\\$1" makes "\$1"
i need in the case of @ i needed "\@"
so change the $ to \
"\\\1" gives in the case of @ "\@"
Job Done
View user's profile View All Posts By User

  Go To Top

Powered by XMB
XMB Forum Software © 2001-2012 The XMB Group