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.
Dizzle
Op
Posts: 109 Joined: Thu Apr 28, 2005 11:21 am
Contact:
Post
by Dizzle » Thu Jun 23, 2005 2:36 pm
Code: Select all
if {[llength [channels] ] < 20 } {
putserv "NOTICE $n : Im already in 20 channels, cant join any more channels"
Is this the right way too make a notice at a user when hes wants the bot too join channel and he is already in 20 channels, or is there an easier way ?
Sir_Fz
Revered One
Posts: 3794 Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:
Post
by Sir_Fz » Thu Jun 23, 2005 3:05 pm
To be logical, you should check if the number of channels is greater than 20 rather than less than 20.
Code: Select all
if {[llength [channels]] > 20} {
puthelp "NOTICE $n :I'm already in 20 channels...bla bla bla"
}
Dizzle
Op
Posts: 109 Joined: Thu Apr 28, 2005 11:21 am
Contact:
Post
by Dizzle » Fri Jun 24, 2005 12:29 am
sry, if i watched better then i would had noticed that. butt the code is good ??
Sir_Fz
Revered One
Posts: 3794 Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:
Post
by Sir_Fz » Fri Jun 24, 2005 3:35 am
Try it.