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.

CTCP to PUBLIC

Old posts that have not been replied to for several years.
Locked
s
s0urc3x

CTCP to PUBLIC

Post by s0urc3x »

Hi There!
Currently when i post "/ctcp botnick XDCC SEND #1" i'll get File #1...
But it's to long! I need to bind it primary to public cmd and secondary only one word like "@get", because it's always SEND #1
I tried it a lot of times bot it doesn't worked )-:
Can somebody help me?

Code: Select all

bind ctcp - xdcc xctcpevent

proc xctcpevent { nick uhost handle dest keyword arg } {
	xctcpmonitor $nick $arg
}

proc xctcpmonitor { nick command } {
..."@get" should forward the XDCC SEND #1 ...

thx, sx
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Re: CTCP to PUBLIC

Post by user »

Try this:

Code: Select all

bind pub - @get pub:get
proc pub:get {nick args} {
	xctcpmonitor $nick "XDCC SEND #1"
}
User avatar
strikelight
Owner
Posts: 708
Joined: Mon Oct 07, 2002 10:39 am
Contact:

Re: CTCP to PUBLIC

Post by strikelight »

user wrote:Try this:

Code: Select all

bind pub - @get pub:get
proc pub:get {nick args} {
	xctcpmonitor $nick "XDCC SEND #1"
}
as 'arg' in the example ctcp bound proc will not include 'XDCC' (the keyword), that code should be slightly modified:

Code: Select all

bind pub - @get pub:get
proc pub:get {nick args} {
	xctcpmonitor $nick "SEND #1"
}
Locked