if ($this->messageWaiting) {
return 1;
} else {
- return 120;
+ return $this->plugin->pinginterval;
}
}
*/
public function idle() {
// Send a ping if necessary
- if (empty($this->lastPing) || time() - $this->lastPing > 120) {
+ if (empty($this->lastPing) || time() - $this->lastPing > $this->plugin->pinginterval) {
$this->sendPing();
}
'plugins.autoload' => true,
- 'ui.enabled' => true,
+ // Uncomment to enable debugging output
+ //'ui.enabled' => true,
'nickserv.password' => $this->plugin->nickservpassword,
'nickserv.identify_message' => $this->plugin->nickservidentifyregexp,
* @return boolean
*/
public function handle_irc_message($data) {
- $this->plugin->enqueue_incoming_raw($data);
+ $this->plugin->enqueueIncomingRaw($data);
return true;
}
if (isset($this->regChecksLookup[$usernick])) {
if ($data['registered']) {
// Send message
- $this->plugin->send_confirmation_code($screenname, $nickdata['code'], $nickdata['user'], true);
+ $this->plugin->sendConfirmationCode($screenname, $nickdata['code'], $nickdata['user'], true);
} else {
- $this->plugin->send_message($screenname, _m('Your nickname is not registered so IRC connectivity cannot be enabled'));
+ $this->plugin->sendMessage($screenname, _m('Your nickname is not registered so IRC connectivity cannot be enabled'));
$confirm = new Confirm_address();
if (!$result) {
common_log_db_error($confirm, 'DELETE', __FILE__);
// TRANS: Server error thrown on database error canceling IM address confirmation.
- $this->serverError(_('Couldn\'t delete confirmation.'));
+ $this->serverError(_m('Could not delete confirmation.'));
return;
}
}