Noutrious commented on a Page, 24/7 bot in channel  -  Feb 03, 2008

Yeah, the idea is nice, but you could make it simpler for the clients, somehow, for example:

alias -l getbots {
.var %botnicks = Bob,Tom,Sally
.var %n = 0
.var %num = $numtok(%botnicks,44)
:again
while (%n < %num) {
.inc %num
if ($gettok(%botnicks,%num,44) = $1) { return 1 }
.goto again
}
}

And now all you have to do is:
Replace:

  if ( ( $nick == <nick1> ) || ( $nick == <nick2> ) ) {
    if ( ( $notify(<nick1>).ison == $false ) && ( $notify(<nick2>).ison == $false ) ) {

With:

 if ($getbots($nick) = 1) && (!$notify($nick).ison) {

And replace:

  if ( ( $nick == <nick1> ) || ( $nick == <nick2> ) ) {

With:

if ($getbots($nick) = 1) {

This makes it user-friendlier and a little bit more professional :)

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.