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.

channel full notice

Old posts that have not been replied to for several years.
Locked
D
Dizzle
Op
Posts: 109
Joined: Thu Apr 28, 2005 11:21 am
Contact:

channel full notice

Post by Dizzle »

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 ?
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

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"
}
D
Dizzle
Op
Posts: 109
Joined: Thu Apr 28, 2005 11:21 am
Contact:

Post by Dizzle »

sry, if i watched better then i would had noticed that. butt the code is good ??
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Try it.
Locked