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.

just for 1 channel

Old posts that have not been replied to for several years.
Locked
d
decta
Voice
Posts: 14
Joined: Sun Mar 23, 2003 3:00 pm
Location: austria
Contact:

just for 1 channel

Post by decta »

i made a script that shows some text in query when you tipe !help in the channel

but i just want that it is just for the channel i enter in the tcl
what do i have to add so that the bot only notices this command in channels !help is needed
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Use this folowing example:

Code: Select all

set helpchan "#channel"

proc bla {nick hand uhost chan text} {
global helpchan
if {[string tolower $chan] != [string tolower $helpchan]} { return }
continue with your code..
Once the game is over, the king and the pawn go back in the same box.
d
decta
Voice
Posts: 14
Joined: Sun Mar 23, 2003 3:00 pm
Location: austria
Contact:

Post by decta »

thx
Locked