Right you are.caesar wrote:you should use the 'isbonick' function instead, or at least either 'string tolower' both variablesif {"$nick" == "$botnick"} {
Thank you for catching this and pointing it out.
I've done this in the past, and it bit me in the butt, and I had to come back and I used string tolower to cover it.
(I must have a mental block... since I should know better now..sigh)
Question:
Does isbotnick take care of differences in case automatically?
I never thought to use isbotnick.....
This is another form of a list that he'd have to maintain though....
Here's my version of the code to exclude from the list:you could use:Code: Select all
bind time - "* * * * *" time:webusers # Path to save text files. set webusers(file) "you/need/to/edit/this/path/web_users.txt" set webusers(count_file) "you/need/to/edit/this/path/web_users_count.txt" set webusers(exclude) "bot1 bot2 bot3 user1 user2" [/quote] I think though, that he is looking for a way for the determination to happen automatically.... without having to maintain a list of nicks manually. [quote] proc cron:webusers {min hour day month year} { [/quote] The bind time above calls [b]time[/b]:webusers Typo ? .... [quote] Eventually, instead of [code] [lsearch -nocase $webusers(exclude) $nick] == -1
to exclude all users that have the b or f flag, or whatever you wish for that specific channel or some global flags.Code: Select all
[matchattr [nick2hand $nick] bf #AirfixDogfighter]
I think that he owns the IRC server too, and requires all bots to set some mode on themselves... is it +B ? ....
such that a /whois has a line like this in it:
We could do something where his bot sends a whois to each nick in the channel, and have a raw bind that traps for whatever numeric corresponds to that line.Durga is a bot on irc.icq.com
If by now you are thinking that it is far easier (if the list is short and doesn't change very often) to maintain a simple list manually - I agree.
That doesn't mean that making it work automatically wouldn't be a fun project, just the for the heck of it.