| View previous topic :: View next topic |
| Author |
Message |
apnihost Voice
Joined: 23 Jun 2013 Posts: 8
|
Posted: Wed Jan 20, 2016 3:06 pm Post subject: multi pref want |
|
|
| Code: | pref {! @}
bind pub - ($pref)test test
proc test {nick uhost hand chan text} {
} |
i make this but its not working |
|
| Back to top |
|
 |
Madalin Master

Joined: 24 Jun 2005 Posts: 310 Location: Constanta, Romania
|
Posted: Fri Jan 22, 2016 1:05 pm Post subject: |
|
|
You can try using this code and then create
| Code: | bind PUBM - * shortcut
proc shortcut {nick uhost hand chan arg} {
if {[string index $arg 0] in {! . `}} {
set cmd [string range $arg 1 end]
set cmd [lindex [split $cmd] 0]
set arg [join [lrange [split $arg] 1 end]]
} elseif {[isbotnick [lindex [split $arg] 0]]} {
set cmd [lindex [split $arg] 1]
set force [lindex [split $arg] 3]
set arg [join [lrange [split $arg] 2 end]]
} else { return }
if {[info commands command:$cmd] ne ""} { command:$cmd $nick $uhost $nick $chan $arg }
} |
and then create
| Code: | | proc command:test {nick uhost hand chan arg} { |
And it will work with !test `test or even BOTNICK test _________________ https://github.com/MadaliNTCL - To chat with me: https://tawk.to/MadaliNTCL |
|
| Back to top |
|
 |
|