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.

little help

Old posts that have not been replied to for several years.
Locked
K
Kaarel
Halfop
Posts: 91
Joined: Sat Apr 26, 2003 5:24 am

little help

Post by Kaarel »

I have this code

Code: Select all

bind pub - !User@host pub_user@host
bind pub - !host pub_host

proc pub_host {nick uhost hand chan arg} {
set arg [charfilter $arg]
set alternate [lindex [split $arg] 2]
set hostmask "$nick!*[getchanhost $arg $chan]"
putserv "NOTICE $arg :Your User@host is: $alternate [maskhost $hostmask]"
}

proc pub_user@host {nick uhost hand chan arg} {
set alternate [lindex [split $arg] 2]
set hostmask "$nick!*[getchanhost $nick $chan]"
putserv "NOTICE $nick :Your User@host is: $alternate [maskhost $hostmask]" 
}


But when I write !host my bot tells me

Code: Select all

<Botman> [19:25] Tcl error [pub_host]: invalid command name "charfilter"

Whats wrong
c
cerberus_gr
Halfop
Posts: 97
Joined: Fri Feb 07, 2003 8:57 am
Location: 127.0.0.1

Post by cerberus_gr »

There is no procedure charfilter. What do you want this procedure to do?
User avatar
ReaLz
Op
Posts: 121
Joined: Sat Oct 19, 2002 5:33 am
Location: Athens, Greece

Post by ReaLz »

Replace this:

Code: Select all

set arg [charfilter $arg]
with this:

Code: Select all

set arg [lindex $arg 0]
«A fantastic spaghetti is a spaghetti that does not exist»
User avatar
Papillon
Owner
Posts: 724
Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no

Post by Papillon »

do not do that!
that will mess up the complete proc ;)

the charfilter procedure was posted in some other post in this forum a while ago, it was posted by caesar I believe... try searching for it to get it.
Elen sila lúmenn' omentielvo
User avatar
ReaLz
Op
Posts: 121
Joined: Sat Oct 19, 2002 5:33 am
Location: Athens, Greece

Post by ReaLz »

uh if you say so... sorry :P
«A fantastic spaghetti is a spaghetti that does not exist»
User avatar
caesar
Mint Rubber
Posts: 3776
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Actualy, no. The code I've used (wich is made by ppslim, not by me) is called "ctrl:filter" is to remove the colours, bold, underline, reverse, etc.. I've seen a "charfilter" proc in the LoL's Toolz script. Probably he got it from there or something..
Once the game is over, the king and the pawn go back in the same box.
User avatar
Papillon
Owner
Posts: 724
Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no

Post by Papillon »

ahh.. that was it :) ... sorry :D
Elen sila lúmenn' omentielvo
Locked