| View previous topic :: View next topic |
| Author |
Message |
cleaner Voice
Joined: 13 Apr 2009 Posts: 15
|
Posted: Thu Apr 16, 2009 5:19 pm Post subject: [SOLVED] Problem with bind pub + botnick format |
|
|
Hello!
Please tell me how to change this script to use this like:
at this time it is:
| Code: | bind pub -|- !help pub_do_shelp
proc pub_do_shelp {nick host handle channel text} {
putserv "NOTICE $nick :Public commands: !..."
} |
Please answer me!
Last edited by cleaner on Sat Apr 18, 2009 1:43 pm; edited 2 times in total |
|
| Back to top |
|
 |
arfer Master

Joined: 26 Nov 2004 Posts: 436 Location: Manchester, UK
|
Posted: Fri Apr 17, 2009 7:16 pm Post subject: |
|
|
Perhaps the reason for limited response here is that we can't really believe that you would want to change the simplicity of a !help trigger to one rather longer and more awkward.
By bot_nick: !help I assume you mean $botnick: !help rather than the literal meaning. You will need to employ a PUBM bind something like the following :-
| Code: |
bind PUBM - * pub_do_shelp
proc pub_do_shelp {nick uhost hand channel txt} {
global botnick
if {[string match "$botnick\: !help" [string trim $txt]]} {
putserv "NOTICE $nick :Public commands\: !..."
}
}
|
_________________ I must have had nothing to do |
|
| Back to top |
|
 |
cleaner Voice
Joined: 13 Apr 2009 Posts: 15
|
Posted: Sat Apr 18, 2009 1:40 pm Post subject: |
|
|
arfer,
Thanks, you halped me! .
Before this I was trying something like:
| Code: | | #bind pubm -|- "% $botnick*\!cmd" pub_do_cmd |
But your sollution is understanding for me and is working!
Thanks man! |
|
| Back to top |
|
 |
|