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.

Blowfish decrypt

Old posts that have not been replied to for several years.
Locked
R
RaZ
Voice
Posts: 3
Joined: Fri Jul 29, 2005 8:10 pm

Blowfish decrypt

Post by RaZ »

Hello,

I've use this to decrypt http://forum.egghelp.org/viewtopic.php?t=4269 but my bot no responding in channel with this code:
set key "keytest"
bind pub - "#test *" decryptall

proc decryptall { nick uhost handle chan arg } {
global key
set arg [decrypt $key [string range $arg 4 9999]]
eval [$nick $uhost $handle $chan $arg]
}
Please, help me, i'm noobie :oops:
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

what is that [eval] supposed to do?

you are confused with Tcl syntax, square brackets mean command substitution, and $nick is not a Tcl command
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Code: Select all

putserv "PRIVMSG $chan :arg = $arg"
You obviously didn't read the posted code correctly. There's no mention of [eval]. Replace that line with the one above.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
R
RaZ
Voice
Posts: 3
Joined: Fri Jul 29, 2005 8:10 pm

Post by RaZ »

with
putserv "PRIVMSG $chan :arg = $arg"
its ok but the bot no reply, example:
set key "keytest"

bind pub - !test pub:test
bind pub - "#test *" decryptall

proc pub:test { nick uhost handle channel arg } {
putquick "PRIVMSG $channel :HELLO"
}

proc decryptall { nick uhost handle chan arg } {
global key
set arg [decrypt $key [string range $arg 4 9999]]
putserv "PRIVMSG $chan :arg = $arg"
}
but i f i wrote !test, the bot dont reply "HELLO" :roll:
R
RaZ
Voice
Posts: 3
Joined: Fri Jul 29, 2005 8:10 pm

Post by RaZ »

fixed!

set proc [pub:test $nick $uhost $handle $channel [string range $arg 0 9999]]



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

Post by demond »

RaZ wrote:with
putserv "PRIVMSG $chan :arg = $arg"
its ok but the bot no reply, example:
set key "keytest"

bind pub - !test pub:test
bind pub - "#test *" decryptall

proc pub:test { nick uhost handle channel arg } {
putquick "PRIVMSG $channel :HELLO"
}

proc decryptall { nick uhost handle chan arg } {
global key
set arg [decrypt $key [string range $arg 4 9999]]
putserv "PRIVMSG $chan :arg = $arg"
}
but i f i wrote !test, the bot dont reply "HELLO" :roll:
bot's own output doesn't get echoed back to it (only to other channel members, not to message originator), so the bind doesn't get triggered; you cannot test your scripts this way
Locked