Back Reply to topic
kardson 
(started thread)
Topfight Chicken 
Topics: 6
Posts: 38
Playing:  AOC
Ingame:  kardson
Years registered: * * * * * * * * * * * * * * * * * *
Bug? whois removes offline guildmembers from buddylist Posted: Post 12:38 Wed - Jul 02, 2008

If you perform a !whois on a offline guild member already identified and added to the buddylist. The bot deletes them. Reply with quote


Chaly 
Offizier · Webmaster 
Topics: 404
Posts: 2107
Location: Bad Honnef
Playing:  Guildwars2 (Drakkar See)
Ingame:  Chaly Flavour
Years registered: * * * * * * * * * * * * * * * * * * * * * * *
Posted: Post 06:02 Wed - Jul 02, 2008

de-asura is currently down, so i can't test it right now,
but i already did as i was writing !whois with 0.6 - and it worked (4th 'if'):
Code:
if ($pluginwords[1]=="!whois") {
   #second parameter?
   if ($pluginwords[2]) {
      if(preg_match('#^[a-z]+$#i',$pluginwords[2]) ) {
         global $guildmates;
         $whois=strtoupper(substr($pluginwords[2],0,1)).strtolower(substr($pluginwords[2],1));
         if (!$guildmates[$whois]) {
            #
            #
            #
            #
         } else {
            $msg="$whois is in your guild, right in front of you";
         }
      } else {
         $msg="$sender :: ".$pluginwords[2]." is not a valid charactername!";
      }
   } else {
      $msg="Please use '!whois (name of the character)'.";
   }
   if ($msg) {
      send_guild_channel_message(colortext(":: $msg ::"));
   }
}
Reply with quote



_________________

Chalys Gimpnesstheory (2003) Die Theorie der expotentiellen Bullshits den Gimps bei gleichbleibendem Anteil produzieren.
Back Reply to topic