This is my little change to acidblood IRC bot making it behave IMHO more clever, when AUTOOP is on. In vanilla acidblood, with AUTOOP=ON it autoops everyone, no matter if password has been set. After applying this trivial patch, acidblood will autoop those who don't have any password set. However, even with autoopping, users with password will have to supply it. I needed this to let two bots on one channel to autoop themselves, but do not autoop ordinary users. This patch makes configuration directive REQPASS totally useless, but I've been so lazy to remove it so far :) diff -ru /home/jikos/acidblood/acidblood/src/list.c /home/jikos/acidblood.devel/acidblood/src/list.c --- /home/jikos/acidblood/acidblood/src/list.c Fri Jan 10 20:42:17 2003 +++ /home/jikos/acidblood.devel/acidblood/src/list.c Sun Apr 20 21:11:35 2003 @@ -209,14 +209,18 @@ culist->access= userdata_curr->userstatus ; return ; } - if (botinfo->reqpass == 1) { +/* if (botinfo->reqpass == 1) { if (password == NULL || !streq(userdata_curr->userpass, password)) return ; + }*/ + if (password && streq(userdata_curr->userpass, password)){ + culist->access = userdata_curr->userstatus; + return ; } - culist->access = userdata_curr->userstatus ; +/* culist->access = userdata_curr->userstatus ;*/ return ; } }