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.
Old posts that have not been replied to for several years.
s
s0urc3x
Post
by s0urc3x » Tue Sep 02, 2003 9:13 am
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
Posts: 1452 Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway
Post
by user » Tue Sep 02, 2003 1:14 pm
Try this:
Code: Select all
bind pub - @get pub:get
proc pub:get {nick args} {
xctcpmonitor $nick "XDCC SEND #1"
}
strikelight
Owner
Posts: 708 Joined: Mon Oct 07, 2002 10:39 am
Contact:
Post
by strikelight » Tue Sep 02, 2003 1:31 pm
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"
}