This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

bot remove the akick and founder only allowed to add akick..

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
S
Sydneybabe
Op
Posts: 106
Joined: Fri Apr 27, 2007 3:31 am
Location: Philippines

Post by Sydneybabe »

hi nml375 i load the script and this is what appear on partyline:

<Tashwini> [23:48] Recieved chanserv-notice "[VERBOSE] maLd|tang`masung|t!~grace@d193-69-36.home3.cgocable.net => akick #anthony add *!*@.org" from "ChanServ!service@dal.net" to "@#anthony"
<Tashwini> [23:48] Data extracted: maLd|tang`masung|t ~grace@d193-69-36.home3.cgocable.net #anthony *!*@.org
<Tashwini> [23:48] Sending: CHANSERV WHY #anthony maLd|tang`masung|t
<Tashwini> [23:48] Recieved chanserv-notice "maLd|tang`masung|t has SOp access to #anthony. Reason: Identification to the nickname maLd|tang`masung|t. Channel Frozen: NO" from "ChanServ!service@dal.net" to "Tashwini"
<Tashwini> [23:48] Origin appears authentic, continuing...
<Tashwini> [23:48] Data extracted: maLd|tang`masung|t SOp #anthony. maLd|tang`masung|t NO
<Tashwini> [23:48] Did not find scheduled check. Ignoring (Status: 1 0
<Tashwini> [23:48] -ChanServ (service@dal.net)- maLd|tang`masung|t has SOp access to #anthony. Reason: Identification to the nickname maLd|tang`masung|t. Channel Frozen: NO

..bot still not removing the akick.
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Somehow you still get a trailing . in the channelname, which I find very strange. When running the regular expression manually with the same data, I do not get that dot.

Could you triple-check the regular expression in check:why, cause I'm running low on ideas why this is breaking?
(regexp -- {^.....)
NML_375
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

I loaded this into one of my bots and with a "dirty" fix, it works as expected. :lol:

Code: Select all

set tchan [string trim $tchan .]
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

I guess that's a way of dealing with it, although I generally don't like those solutions :/
Alchera, do you get the same issue with the dot remaining aswell?
NML_375
S
Sydneybabe
Op
Posts: 106
Joined: Fri Apr 27, 2007 3:31 am
Location: Philippines

Post by Sydneybabe »

hi nml375 is the scripts work now :?
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Well, Alchera's fix would sort any issues with trailing dots (.). The cause for that dot is still unknown however. There might still be an issue with un-escaped character in the regular expression, that I'm gonna tend to in a few seconds..
NML_375
S
Sydneybabe
Op
Posts: 106
Joined: Fri Apr 27, 2007 3:31 am
Location: Philippines

Post by Sydneybabe »

hi nml375 i loaded the script and this is what appear on partyline:

<Tashwini> [02:04] Recieved chanserv-notice "[VERBOSE] DramaQueen`!psycho@203.215.124.22 => akick #anthony add *!*@hayz.ulit" from "ChanServ!service@dal.net" to "@#anthony"
<Tashwini> [02:04] Data extracted: DramaQueen` psycho@203.215.124.22 #anthony *!*@hayz.ulit
<Tashwini> [02:04] Sending: CHANSERV WHY #anthony DramaQueen`
<Tashwini> [02:04] Recieved chanserv-notice "DramaQueen` has SOp access to #anthony. Reason: Identification to the nickname deee. Channel Frozen: NO" from "ChanServ!service@dal.net" to "Tashwini"
<Tashwini> [02:04] Origin appears authentic, continuing...
<Tashwini> [02:04] -ChanServ (service@dal.net)- DramaQueen` has SOp access to #anthony. Reason: Identification to the nickname deee. Channel Frozen: NO
<Tashwini> [02:05] Writing user file...
<Tashwini> [02:05] Writing channel file...

.. nothing happen removing akick :/
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

It would seem there is some "garbage" in the string causing problems. stripcodes should've taken care of that, but apparently some non-graphical character remains within the string causing problems with the matching.

Could you try replacing this line:

Code: Select all

 if {[regexp -- {^(.+?) has (SOp|AOp) access to (.+?)\. Reason: Identification to the nickname (.+?)\. Channel Frozen: (YES|NO)$} [stripcodes bcruag $text] match tnick tacc tchan trnick tfrozen]} {
With something like this (will produce large chunk of text to your logs):

Code: Select all

 if {[regexp -- {^(.+?) has (SOp|AOp) access to (.+?). Reason: Identification to the nickname (.+?). Channel Frozen: (YES|NO)$} [stripcodes bcruag $text] match tnick tacc tchan trnick tfrozen]} {
  foreach _c [split $match ""] {append _t "[scan $_c "%c"],"}
  putlog "Debug2: Bytes of match is:"
  putlog $_t
This should show exactly which characters the regular expression is matching against.
NML_375
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

nml375 wrote:I guess that's a way of dealing with it, although I generally don't like those solutions :/
Alchera, do you get the same issue with the dot remaining aswell?
I was getting that dot also.

I was curious as to why Sydneybabe was having problems as there was no obvious reason why there should have been. :)
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

I ran the updated code and this is all that happened:
<Barry> [13:08] Recieved chanserv-notice "[VERBOSE] Dinotopia!weirdo@jebediah.amishmafia.org => akick #egghelp.org add Henry!*@*" from "ChanServ!service@dal.net" to "@#egghelp.org"
<Barry> [13:08] Data extracted: Dinotopia weirdo@jebediah.amishmafia.org #egghelp.org Henry!*@*
<Barry> [13:08] Sending: CHANSERV WHY #egghelp.org Dinotopia
<Barry> [13:08] Recieved chanserv-notice "Dinotopia has SOp access to #egghelp.org. Reason: Identification to the nickname Dinotopia. Channel Frozen: NO" from "ChanServ!service@dal.net" to "Barry"
<Barry> [13:08] Origin appears authentic, continuing...
<Barry> [13:08] Debug2: Bytes of match is:
<Barry> [13:08] 68,105,110,111,116,111,112,105,97,32,104,97,115,32,83,79,112,32,97,99,99,101,115,115,32,116,111,32,35,101,103,103,104,101,108,112,46,
111,114,103,46,32,32,82,101,97,115,111,110,58,32,73,100,101,110,116,105,102,105,99,97,116,105,111,110,32,116,111,32,116,104,101,32,110,
105,99,107,110,97,109,101,32,68,105,110,111,116,111,112,105,97,46,32,67,104,97,110,110,101,108,32,70,114,111,122,101,110,58,32,78,79,
<Barry> [13:08] Did not find scheduled check. Ignoring (Status: 1 0
<Barry> [13:08] -ChanServ (service@dal.net)- Dinotopia has SOp access to #egghelp.org. Reason: Identification to the nickname Dinotopia. Channel Frozen: NO
.. and "we" stopped dead in "our" tracks. :lol:
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Actually, it seems there is two spaces after "#eggdrop.org.". I have no idea why that does'nt show in the output though.
In any case, the fix should be trivial then..
Updating both initial code and debug in a minute or two..
NML_375
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

nml375 wrote:Actually, it seems there is two spaces after "#eggdrop.org.". I have no idea why that does'nt show in the output though.
In any case, the fix should be trivial then..
Updating both initial code and debug in a minute or two..
There is indeed two spaces after the channel name and it appears this was truncated by the forum code.

Your fixed code works exactly as expected. Sydneybabe will be happy. :lol:
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
S
Sydneybabe
Op
Posts: 106
Joined: Fri Apr 27, 2007 3:31 am
Location: Philippines

Post by Sydneybabe »

wow it works now big thanks to nml375 for the big help and to Alchera for the help also thanks a lot :D
Post Reply