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

Printable Version  
Author: Subject: X bot extras
snow
Junior Member
**




Posts: 16
Registered: 17-1-2010
Member Is Offline


[*] posted on 17-1-2010 at 06:08
X bot extras


hello

I am asking if there is any way to make work the pnp banning persons in channels with X without having mode +o (bannng by X channel bot)

EG: www.site.com is a BAD word.

me is: (with X level 499, but without op in the channel)
*** snow- is snow@snow.users.undernet.org
*** snow- on #channel

[05:02] * pnptest (pnp@82.159.82.65.dyn.user.ono.com) has joined #channel
[05:02] <pnptest> test www.site.com
*** here the pnp detect the bad word and banning him # through the X channel bot ***

can you help me with this, please?
View user's profile View All Posts By User
snow
Junior Member
**




Posts: 16
Registered: 17-1-2010
Member Is Offline


[*] posted on 19-1-2010 at 03:39


any help, please?
View user's profile View All Posts By User
solbu
Super Administrator
*********




Posts: 43
Registered: 3-10-2008
Location: EFNet, Libera, OFTC
Member Is Offline


[*] posted on 10-2-2010 at 19:15


You need to right click in the channel and set your access level (450 in your case) in the X-popup.
Then it should do what you want.
View user's profile Visit user's homepage View All Posts By User
snow
Junior Member
**




Posts: 16
Registered: 17-1-2010
Member Is Offline


[*] posted on 18-2-2010 at 03:14


hello, I've tried, but isn't working.
View user's profile View All Posts By User
kap
PnP Developer
***




Posts: 54
Registered: 6-8-2015
Member Is Offline


[*] posted on 27-9-2015 at 17:32


I'm pretty sure your X access has to be >= 75 according to alias _xw.splice - Line: 708 Script : XW.PPA:
Code:
alias _xw.splice { if ($1 == ?) { if ($_isserv(xw) == $false) return 0 if ($istok(mode halfop dehalfop,$3,32)) return 0 if (($istok(voice devoice,$3,32)) && (u !isin $hget(pnp. $+ $cid,-servopt))) return 0 if ($_chanbot($2) !isop $2) return 0 if (u isin $hget(pnp. $+ $cid,-servopt)) { if ($hget(pnp. $+ $cid,-xwacc.username)) { var %acc = $readini($_cfg(pw.ini),n,xw- $+ $hget(pnp. $+ $cid,net),a $+ $2) if (%acc >= 100) return 1 if ((%acc >= 75) && ($istok(ban unban,$3,32))) return 1 if ((%acc >= 50) && ($istok(kick topic,$3,32))) return 1 if ((%acc >= 25) && ($istok(voice devoice,$3,32))) return 1 } } elseif ($hget(pnp. $+ $cid,-xwacc. $+ $2)) return 1 return 0 } goto $3 :kick | :topic | :op | :deop | :voice | :devoice | xw $upper($3) $2 $4- | return :opme | xw OP $2 $4- | return :unban | xw UNBAN $2 $4 | return :ban | xw BAN $2 $4 336 75 $5- }


I would need to reproduce the error first using mirc 7.43 and pnp 4.22.6, but having said this: If this is not working as intended, this might be a fix; I haven't tested this yet: (set -u --> set -u1)

Change Line: 592 Script : OPCMD.MRC from:
Code:
if ($result) { set -u %.usebot $gettok($hget(pnp,addon.i.bot),%num,44) | return }

To this:
Code:
if ($result) { set -u1 %.usebot $gettok($hget(pnp,addon.i.bot),%num,44) | return }


Caveat: This might not be the correct fix.

Would be great if anyone with X access can (1) reproduce the error, (2) try the above code, (3) retry to reproduce the error with the above code (4) let us know what happened

Cheers

[Edited on 27-9-2015 at 16:37 by kap]
View user's profile View All Posts By User
solbu
Super Administrator
*********




Posts: 43
Registered: 3-10-2008
Location: EFNet, Libera, OFTC
Member Is Offline


[*] posted on 1-10-2015 at 21:12


Quote: Originally posted by kap  
Caveat: This might not be the correct fix.

Keep in mind this is long before we fixed all bugs.
The proper fix is for the user to upgrade to the latest PNP version, which is 4.22.6




Using GNU/Linux, because its a matter of Freedom
View user's profile Visit user's homepage View All Posts By User
kap
PnP Developer
***




Posts: 54
Registered: 6-8-2015
Member Is Offline


[*] posted on 4-10-2015 at 00:15


Tested with X access 100. Tested default and tested setting set-u --> set -u1. Neither gives the desired result.

Quote:

[00:06] *** X sets mode: +o kapot
[00:06] (@kapot): ok
[00:06] *** You have set yourself as access level 100 on #Quebecc
[00:06] (@kapot): [00:06] *** You have set yourself as access level 100 on #Quebecc
[00:06] *** kapot sets mode: -o kapot
[00:06] (kapot): just a sec
[00:07] (kapot): one of these words trigger protection: [Censored], [Censored], [Censored], ****
[00:07] (kapot): go ahead
[00:08] (kapot): if you were to speak them, pnp ought to kick through using x
[00:08] (kapot): without the op
[00:08] (kapot): being needed
[00:08] (Maax): gay
[00:08] (kapot): pnp is a work of art
[00:09] (kapot): :)
[00:09] (kapot): go ahead
[00:09] (kapot): say one of the following four words: [Censored], [Censored], [Censored] or ****
[00:10] (kapot): or should I add another harmless word in case you are to ashamed of saying them?
[00:10] (Maax): ahit
[00:10] (Maax): [Censored]
[00:10] (kapot): ah
[00:10] (kapot): so it doesnt work
[00:10] (kapot): well, got that confirmed
[00:10] (Maax): of course
[00:11] (kapot): hehe
[00:11] (kapot): can you say it again?
[00:11] (kapot): [Censored] that is
[00:11] (Maax): [Censored]
[00:11] (Maax): [Censored]kkkkkkkkkkkkkkk FAWK SHIIIIIIIIIIIIIIIIIIIIT FAWK THAT AZZZZZZZZZZZZZZZZ
[00:11] (Maax): :P
[00:12] (kapot): you're the best tester
[00:12] (kapot): still no luck, let me change a small setting
[00:12] (Maax): right
[00:13] (kapot): alright
[00:13] (kapot): go ahead :)
[00:13] (Maax): [Censored]
[00:13] (kapot): nope
[00:13] (kapot): testing is over
[00:13] (kapot): thanks for your help
[00:13] (kapot): CryptoSiD, please remove my access
[00:14] (Maax): done



Did not reload the script upon making the set -u --> set -u1 change, will have to further investigate.

[Edited on 3-10-2015 at 23:34 by kap]
View user's profile View All Posts By User
kap
PnP Developer
***




Posts: 54
Registered: 6-8-2015
Member Is Offline


[*] posted on 4-10-2015 at 19:26


I've had to double check and test with mIRC 6.01 and PnP 4.22, but it appears PnP was not designed to auto-react through X / Z / P bot when you aren't channel operator. Manual commands work though, so typing /opme, /kick <nick> or /ban <nick> when you are not opped will use X / Z / P bot. (If you have sufficient access level set and logged in with the bot!)

Quote:
can you help me with this, please?


No, unfortunately we are only committed to fixing bugs and therefore we do not add core functionality. We are committed to providing help and detailed information upon request and hope to have clarified this a bit.
View user's profile View All Posts By User

  Go To Top

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