This is probably the most basic script in the world. It uses comchan as finds out how many channels $2 is in kinda =s
ie. If your bot is in 10 channels and $2 is in the exact 10 channels, it'll reply 10.
But if your bot is in 10 channels and $2 is in 15 channels, yet $2 is in 7 channels as the bot is in, it'll reply 7.
I know, it's hard to explain but relatively simple script.
on *:TEXT:!count *:#:{
privmsg $chan $2 is in $comchan($2,0) of the same channels I am in :)
}
I don't consider myself one of the "privileged few." I feel privileged to help out others, but unfortunately there'll always be some folks who'll find any opportune moment to bring you down. The is supposed to be a forum where people encourage each other to be better, not defame or criticize just to boost your own ego.
The issue here is this: you want to keep your own pride by disparaging how bad my example is incessantly, and you're going to the extreme. I did admit that failure, while I was patiently waiting for you to draw up the likelihood of my code fallacy, which you finally did so at the very end. Then, Out of nowhere, you told me how I should learn to read -- that was uncalled for.
Jethro if you already knew, that i would post that, and keep asking that? i think you have serious issues...
Anyway, this is pointless now to further this meaningless debate or debacle.
no that its not pointless, since it will fail, you need to provide a good code, since mine doesnt need the $calc() its still working with that, but yours will keep returning the wrong number for channels
I was waiting for you to show me that, and you failed to do so. Yes, I did my own testing, and it did fail on that scenario.
Please don't tell me how to read when you can't even write a proper sentence yourself.
Lastly, taken from your original example, you still don't need $calc().
Anyway, this is pointless now to further this meaningless debate or debacle.
using $left(%x,1) will fail, if the nick is in 16 channels, it will only return 1.. the right way to do it, is using $gettok
try this, put another nick in 10 other channels
then type !count nick
Nick is in 1 of the same channel(s) I am in, and nick is on: #chan1, #chan2, #chan3,#chan4,#chan5,#chan6,#chan7,#chan8,#chan9,#chan10
your method will only return 1, instead 10
you need to learn how to read, since im repeating the same thing 4 times