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.
quiki
Voice
Posts: 10 Joined: Wed Sep 24, 2003 6:20 am
Location: Norway
Contact:
Post
by quiki » Thu Jan 08, 2004 9:42 am
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
}
cvanmeer
Halfop
Posts: 40 Joined: Tue Dec 02, 2003 1:00 pm
Location: The Netherlands
Contact:
Post
by cvanmeer » Thu Jan 08, 2004 11:03 am
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
arcane
Master
Posts: 280 Joined: Thu Jan 30, 2003 9:18 am
Location: Germany
Contact:
Post
by arcane » Thu Jan 08, 2004 11:04 am
replace "PRIVMSG $mychan" with "NOTICE $nick"
quiki
Voice
Posts: 10 Joined: Wed Sep 24, 2003 6:20 am
Location: Norway
Contact:
Post
by quiki » Thu Jan 08, 2004 11:26 am
Thx guyes