![]() |
|
|||||||
| Tcl scripting Tcl scripting related questions |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Junior Member
Join Date: Apr 2007
Posts: 11
Rep Power: 0 ![]() |
Am un TCL (este de la un prieten,nu stiu copyright) si nu reusesc sa il fac sa mearga !
Code:
set quoteAWAY {
"io nu's away :)"
"hai sa ne bagam si noi away :P"
"di ma .. mda toti is away aici ?"
"precis o mers la buda :)~"
":( nu mai am cu cine povesti :p"
}
set allyourbaseAWAY "*is*away*"
bind pubm - * checkbaseAWAY
bind ctcp - "ACTION" checkbaseAWAY
proc checkbaseAWAY {nick uhost hand chan args} {
global allyourbaseAWAY quoteAWAY
if {[string match -nocase $allyourbaseAWAY $args]} {
putchan $chan "[lindex $quoteAWAY [rand [llength $quoteAWAY]]]"
}
return 1
}
putlog "\00313away *ON* !\00313"
!Code:
[00:00] Tcl error [checkbaseAWAY]: invalid command name "putchan" |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Chankey... error... help | vR|Ar | a&a light script | 2 | 03-05-2007 13:27 |
| eggdrop 1.6.17 error | OryNider | Eggdrop | 5 | 10-09-2006 12:54 |