$sql = "SELECT name,acctid FROM " . db_prefix("accounts") . " WHERE acctid='{$name}' AND locked=0";
             $res = db_query($sql);
             if (db_num_rows($res) != 0) {
                 $row = db_fetch_assoc($res);
                 if ($row['acctid'] == $target) {
                     $a = $points;
                 }
             }
         }
     }
     $name = urldecode(httpget('name'));
     if ($a <= 0) {
         output("`%You decide you want to shun `^%s`%, but since you don't have any flirt points to %s you really aren't in a position to shun %s.", $name, $gendertargett, $gendertargett);
         $nomail = 1;
     } else {
         marriage_modifyflirtpoints($target, -marriage_getflirtpoints($target), $session['user']['acctid'], false);
         output("`@You have decided to shun `^%s`@ and your Flirt Points to %s`@ are now zero.", $name, $gendertargett);
         if (get_module_pref("user_option", "marriage", $target) == 1) {
             output("`n`n`^%s`@ has chosen to not receive flirtation from anyone anymore.  Due to this decision, %s will `\$NOT`@ receive notice that you have chosen to shun %s.", $name, $gendertargets, $gendertargett);
             $nomail = 1;
         }
     }
     break;
 case "ignore":
     //Ignoring someone will cause their flirt points to you to go to zero
     //This should remove the [user]'s flirts from $target
     //This should also remove the flirts received from [user] on $target
     //Get the amount of flirt points:
     $list = unserialize(get_module_pref('flirtsreceived'));
     if ($list == "") {
         $list = array();
 $row = db_fetch_assoc($res);
 $namepartner = $row['name'];
 if (db_num_rows($res) < 1) {
     $session['user']['marriedto'] = 0;
     debuglog("divorced with no notice due to death of the spouse");
     output("`n`@You feel sorrow for the death of your spouse.");
     apply_buff('marriage-death', array("name" => "`6Sorrow", "rounds" => 80, "wearoff" => "`^You start to recover..", "defmod" => 1.1, "survivenewday" => 1, "roundmsg" => "`6Sorrow gives you pain. Your pain gives you anger. Your anger gives you strength."));
     set_module_pref('allprefs', serialize($allprefs));
     break;
 }
 //give players whose proposals were accepted their buff
 if ($allprefs['received'] == 1) {
     apply_buff('marriage-start', array("name" => "`@Marriage", "rounds" => 40, "wearoff" => "`&The elation wears off.", "defmod" => 1.13, "roundmsg" => "`@You are elated at your marriage"));
     output("`n`@The fact that you just got married finally hits you. It's going to be a great day!");
 }
 if (marriage_getflirtpoints($session['user']['marriedto']) < get_module_setting('flirtmuch') && get_module_setting('pointsautodivorceactive')) {
     output_notl("`n");
     output("`bWhen  you  wake  up, you find a note next to you, reading`n`5Dear %s`5,`n", $session['user']['name']);
     output("Despite  many  great  kisses, I find that I'm simply no longer attracted to you the way I used to be.`n`n");
     output("Call  me fickle, call me flakey, but I need to move on.");
     output("There are other warriors in the land, and I think some of them are really hot.");
     output("So it's not you, it's me, etcetera etcetera.`n`n");
     output("No hard feelings, Love,`n%s`b`n", $namepartner);
     require_once "./modules/marriage/divorce.php";
     marriage_divorce();
     break;
 } elseif ($allprefs['received'] == 0 && (get_module_setting("flirttype") == 0 || get_module_setting("reqflbuff") == 0 && get_module_setting("flirttype") == 1)) {
     output("`n`@You and %s`0`@ spend the night in the inn together, and you both emerge positively glowing!", $namepartner);
     apply_buff('marriage-married', array("name" => array("`\$%s`^'s Love", $namepartner), "rounds" => 60, "wearoff" => "`%You feel lonely.`@", "defmod" => 1.03, "roundmsg" => array("`4 %s`@ watches over you", $namepartner)));
 }
 $allprefs['received'] = 0;