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.

pub binding bug?

Old posts that have not been replied to for several years.
Locked
p
puffi
Voice
Posts: 25
Joined: Tue Jun 01, 2004 10:09 am

pub binding bug?

Post by puffi »

Hi, i know it sounds weird but as of 2005 all my pub-bindings work slightly different on my 1.6.17

pub bindings simply dont trigger when i use one or more arguments.

for example, i got a topic-script that tells the current topic with some extra information when a user writes .topic
now for ops of the channel (for real ops, not those who have the flag in the eggdrop, so the bind is for -|-) may edit the topic with + <sometext> or - <index>
all those bindings dont even work. i put a putlog-line to the very first line of the proc but the proc doesnt even get called.

the same behaviour for all other pub bindings :shock:

any ideas?
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

the very first idea that comes to mind would naturally and obviously be you post your script here
p
puffi
Voice
Posts: 25
Joined: Tue Jun 01, 2004 10:09 am

Post by puffi »

Code: Select all

bind pub -|- $thisbot(cmdchar)topic myown:pub_topic

proc myown:pub_topic {n uh h c a} {
  putlog "pub topic n: $n uh: $uh h: $h c: $c a: $a"
  return 1
}
the point simply is, that the scripts worked all before, like for 2 years or sth.
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

try ${thisbot(cmdchar)}topic
p
puffi
Voice
Posts: 25
Joined: Tue Jun 01, 2004 10:09 am

Post by puffi »

doing

.topic
in a channal triggers it.

.topic testargone andtwo
doesnt

the binding itself is okay and did work without any problems. additionally, i didnt change any code...and few days ago .topic testargs did work fine
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

so,

Code: Select all

bind pub -|- ${thisbot(cmdchar)}topic myown:pub_topic 
is triggered by ".topic" and is not triggered by ".topic foo bar", assuming $thisbot(cmdchar) is "."?
p
puffi
Voice
Posts: 25
Joined: Tue Jun 01, 2004 10:09 am

Post by puffi »

exactly. it doesnt matter if i replace the ${thisbot(cmdchar)}topic with .topic it shows the same behaviour.

i found this behaviour on 2 eggdrops with different scripts now, one running 6.16 and one running 6.17

i'm fairly sure 2 days ago the scripts worked just fine
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

just for clarity: you haven't changed anything from 2 days ago - you haven't recompiled the bot and installed the new version and you haven't modified your scripts - yet the scripts won't work now as they worked 2 days ago, on the same bot?
p
puffi
Voice
Posts: 25
Joined: Tue Jun 01, 2004 10:09 am

Post by puffi »

i didnt change anything in none of each eggdrop/* trees.
no new binaries, no new scripts, nothing.

just for clarity too..the two bots i could see this behaviour are on two different machines with different linux distributions, different scripts installed and they are even different versions.


it really looks like a year-2005-bug or sth o.O
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

well, in such case I can see no other possible explanation than somehow changed shared libs - Tcl or otherwise

you can try to compile & install Tcl in your home dir and recompile & link the bot against it, not the system-wide libs
Locked