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.

incith:google :)

Support & discussion of released scripts, and announcements of new releases.
Post Reply
K
Koepi
Voice
Posts: 26
Joined: Sun Aug 31, 2003 1:21 am

Post by Koepi »

Hi,

if i set

Code: Select all

variable command_char "?"
i get this error

Code: Select all

Tcl error [incith::google::public_message]: couldn't compile regular expression pattern: quantifier operand invalid

greets Koepi
User avatar
incith
Master
Posts: 275
Joined: Sat Apr 23, 2005 2:16 am
Location: Canada

Post by incith »

You could try {?}, or "\?" might work too.
K
Koepi
Voice
Posts: 26
Joined: Sun Aug 31, 2003 1:21 am

Post by Koepi »

Sorry, it didn't work :(
m
madwoota
Halfop
Posts: 53
Joined: Tue Aug 09, 2005 12:27 am

Post by madwoota »

It seems that using a trigger character which is either a special function to a regex or just plain a special char causes some issues with the script due to the way its being matched.

With that in mind, I'm going to change the way its matched and hopefully solve (once and for all) the issues caused by people using some .. unique .. characters as their command_char.

-madwoota
K
Koepi
Voice
Posts: 26
Joined: Sun Aug 31, 2003 1:21 am

Post by Koepi »

Hi,

if i understand this option right

Code: Select all

    # set to 1 to enable a /notice reply instead, 0 for normal text (default)
    variable notice_reply 0
then this should give the output as notice or? When i set this option to 1 it give a public replay too, and not a notice reply :(
User avatar
Linux
Halfop
Posts: 71
Joined: Sun Apr 04, 2004 4:20 pm
Location: Under The Sky

Post by Linux »

Koepi wrote:Hi,

if i understand this option right

Code: Select all

    # set to 1 to enable a /notice reply instead, 0 for normal text (default)
    variable notice_reply 0
then this should give the output as notice or? When i set this option to 1 it give a public replay too, and not a notice reply :(
variable notice_reply 0 <= normal text reply
variable notice_reply 1 <= reply via notice
I'm an idiot, At least this one [bug] took about 5 minutes to find...
K
Koepi
Voice
Posts: 26
Joined: Sun Aug 31, 2003 1:21 am

Post by Koepi »

okay, notice reply doesn't work ;)
User avatar
Linux
Halfop
Posts: 71
Joined: Sun Apr 04, 2004 4:20 pm
Location: Under The Sky

Post by Linux »

Koepi wrote:okay, notice reply doesn't work ;)
what actually happend,
on variable 1 its giving normal reply or nothing?
OR on both 0 and 1 its replying as nornal text not notice?
what variable have you set in the script?
Its working fine here. Check yourside maybe you missing something, see:
On variable 1

Code: Select all

# set to 1 to enable a /notice reply instead, 0 for normal text (default)
variable notice_reply 1
Reply:
[16:39] <@Linux> !google egghelp
[16:40] -Bot:#Linux- egghelp.org @ http://www.egghelp.org/ | egghelp.org: tcl archive @ http://www.egghelp.org/tcl.htm | #egghelp @ http://shell.reverse.net/~matilda/egghelp.htm | #egghelp @ http://shell.reverse.net/~matilda/egghelp_stats.htm
On variable 0

Code: Select all

# set to 1 to enable a /notice reply instead, 0 for normal text (default)
variable notice_reply 0
Reply:
[16:43] <@Linux> !google egghelp
[16:43] <Bot> egghelp.org @ http://www.egghelp.org/ | egghelp.org: tcl archive @ http://www.egghelp.org/tcl.htm | #egghelp @ http://shell.reverse.net/~matilda/egghelp.htm | #egghelp @ http://shell.reverse.net/~matilda/egghelp_stats.htm
(Suggestion: incith, much better if bot reply via private notice not channel notice when it set to be on 1 :))
I'm an idiot, At least this one [bug] took about 5 minutes to find...
m
madwoota
Halfop
Posts: 53
Joined: Tue Aug 09, 2005 12:27 am

Post by madwoota »

I've already had a couple of complaints that a channel notice was not exactly what people wanted, so I'll simply add (another) option to force all replies via private msg AND private notice.

ie:
set notice_reply to 1 & force_private to 1 = private notice reply.
set notice_reply to 0 & force_private to 1 = private msg reply.
set notice_reply to 1 & force_private to 0 = regular channel OR private NOTICE.
set notice_reply to 0 & force_private to 0 = regular channel OR private MSG.

That should keep everyone happy :)

Oh, and by the way, for anyone who wants to use a "?" as your command_char, dont until at least the next version as it doesnt work.

So, give me a day or two for the working/real life annoyances to get out of the way and I'll put up a new version with quite a few updates.
(Again .. *sigh*)

-madwoota
m
madwoota
Halfop
Posts: 53
Joined: Tue Aug 09, 2005 12:27 am

Post by madwoota »

Just thought I'd let you all know that I'm nearly done on the next version of incith:google. All of the changes and bugs mentioned so far are done.

I'm just running through my regression test scripts in both eggdrop & windrop and will hopefully post a new version tomorrow night.

-madwoota
m
madwoota
Halfop
Posts: 53
Joined: Tue Aug 09, 2005 12:27 am

Post by madwoota »

Hi all,

v1.7 is done and ready to go.

Includes the following updates:
- added option to force all replies as private (req)
- fixed google groups returning no results
- fixed define: errors on no results
- fixed google print errors on no results/typos
- fixed movie review errors on no results/typos
- fixed some characters not usable as command_chars on one of regular eggdrop or windrop+cygwin
- fixed occasional weird response for travel info
- updated requirements to http package 2.4
- loads of other internal changes


Note: For the new added option, use notice_reply=1 and force_private=1 to make all replies as a private NOTICE to the user insted of public/channel ones. (See tcl config section for details.)

I've also included http.tcl v2.4.2 for any Windows Eggdrop (Windrop) users as the package requirements have changed.

Hold your breath, take a ride, touch me in that place and get it here !!
http://www.woota.net/~madwoota/incith-g ... ent.tar.gz

:D

-madwoota
Last edited by madwoota on Wed Nov 23, 2005 8:06 am, edited 2 times in total.
K
Koepi
Voice
Posts: 26
Joined: Sun Aug 31, 2003 1:21 am

Post by Koepi »

perfect. thank you ;)
e
evildude
Voice
Posts: 24
Joined: Tue Feb 03, 2004 9:13 pm

Post by evildude »

I'm using 1.7 and if I search an ip or hostname I get "no search results were found" every time.
m
madwoota
Halfop
Posts: 53
Joined: Tue Aug 09, 2005 12:27 am

Post by madwoota »

evildude wrote:I'm using 1.7 and if I search an ip or hostname I get "no search results were found" every time.
do you have an example search where a result is not returned when it should ?
m
madwoota
Halfop
Posts: 53
Joined: Tue Aug 09, 2005 12:27 am

Post by madwoota »

Never mind, I've found the problem.
I'll fix it & release a bugfix update asap.

-madwoota
Post Reply