+ // check if the string needs therapy
+ if ((strlen($n) + 1) + (strlen($str) + strlen($l)) > 150)
+ {
+ // send what we've got already and prepare for the next lot
+ if (!$rpc->channel()->set_mode($chan->name, htmlspecialchars("-$n"), htmlspecialchars($str)))
+ $errors[] = $rpc->error . " ($rpc->errno)";
+
+ // prepare for the next set
+ $n = "";
+ $str = "";
+ }