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.

Need some help with an tcl here. very simple I guess

Old posts that have not been replied to for several years.
Locked
q
quiki
Voice
Posts: 10
Joined: Wed Sep 24, 2003 6:20 am
Location: Norway
Contact:

Need some help with an tcl here. very simple I guess

Post by quiki »

I have this tcl, how do I make it msg the list private to the one who type !list ?? Hoping someone could help me.

set mychan "#Mychan"
set mylist {
"My text1"
"My text2"
}

bind pub - "!list" read:shells

proc read:shells {nick uhost handle chan args} {
global mychan mylist
if {[string tolower $chan] != [string tolower $mychan] } { return 0 }
foreach line $mylist {
puthelp "PRIVMSG $mychan :$line"
}
return 1
}
c
cvanmeer
Halfop
Posts: 40
Joined: Tue Dec 02, 2003 1:00 pm
Location: The Netherlands
Contact:

Post by cvanmeer »

Code: Select all

I have this tcl, how do I make it msg the list private to the one who type !list ?? Hoping someone could help me. 

set mychan "#Mychan" 
set mylist { 
"My text1" 
"My text2" 
} 

bind pub - "!list" read:shells 

proc read:shells {nick uhost handle chan args} { 
global mychan mylist 
if {[string tolower $chan] != [string tolower $mychan] } { return 0 } 
foreach line $mylist { 
puthelp "PRIVMSG $mychan :$line" 
} 
return 1 
} 
replace this with:
-----------------------------

Code: Select all


set mychan "#Mychan" 
set mylist { 
"My text1" 
"My text2" 
} 

bind pub -|- !list read:shells 

proc read:shells {nick uhost handle chan text} { 
 global mychan mylist 

 if {[string tolower $chan] != [string tolower $mychan] } { return 0 } 

 foreach line $mylist { 
  puthelp "PRIVMSG $nick :$line" 
 } 
return 1 
} 

Greetz,

Chrizz
User avatar
arcane
Master
Posts: 280
Joined: Thu Jan 30, 2003 9:18 am
Location: Germany
Contact:

Post by arcane »

replace "PRIVMSG $mychan" with "NOTICE $nick"
aVote page back online!
Check out the most popular voting script for eggdrop bots.

Join the metal tavern!
q
quiki
Voice
Posts: 10
Joined: Wed Sep 24, 2003 6:20 am
Location: Norway
Contact:

Post by quiki »

Thx guyes
Locked