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.

Problem with [llength [chanlist $chan]]

Old posts that have not been replied to for several years.
Locked
s
stekoe2000

Problem with [llength [chanlist $chan]]

Post by stekoe2000 »

My scripts is this:

Code: Select all

bind pub - !peak join:peak

proc join:peak {nick host hand chan arg} {
   	putserv "PRIVMSG $chan :Number of users now in chan: [llength [chanlist $chan]]"
}
But this script returns not the correct user count ... The Channel is not +D or +d ... what to do?
e
egghead
Master
Posts: 481
Joined: Mon Oct 29, 2001 8:00 pm
Contact:

Re: Problem with [llength [chanlist $chan]]

Post by egghead »

stekoe2000 wrote:My scripts is this:

Code: Select all

bind pub - !peak join:peak

proc join:peak {nick host hand chan arg} {
   	putserv "PRIVMSG $chan :Number of users now in chan: [llength [chanlist $chan]]"
}
But this script returns not the correct user count ... The Channel is not +D or +d ... what to do?
What does the script return? What is incorrect?
s
stekoe2000

Post by stekoe2000 »

It returns a wrong Usercount. IRC tells me 29 User on Channel, but this script returns 15 .. ?!
e
egghead
Master
Posts: 481
Joined: Mon Oct 29, 2001 8:00 pm
Contact:

Post by egghead »

stekoe2000 wrote:It returns a wrong Usercount. IRC tells me 29 User on Channel, but this script returns 15 .. ?!
Enter the partyline of the bot and use .channel #channelname to find out how many channel users the bot sees. Maybe the channel is desynched/splitted. Also check that you set net-type to the correct value.
s
stekoe2000

Post by stekoe2000 »

The bot sees a wrong usercount on the partyline too! Net-Type ist correct but i dont know what desynched means.
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

I belive desynched stands for desynchronisation or something.. Either make it jump to another server or check again the net-type and set it according to the network it's on.
Once the game is over, the king and the pawn go back in the same box.
Locked