From d68914e4f3a5844c19396a94e3ae41895a36e9a2 Mon Sep 17 00:00:00 2001 From: Craig Andrews Date: Tue, 31 Aug 2010 00:20:05 -0400 Subject: [PATCH] is_autoreply -> isAutoreply --- lib/implugin.php | 4 ++-- plugins/Irc/IrcPlugin.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/implugin.php b/lib/implugin.php index 9fad46c41f..f08fef6cd6 100644 --- a/lib/implugin.php +++ b/lib/implugin.php @@ -402,7 +402,7 @@ abstract class ImPlugin extends Plugin * @param string $txt message text * @return boolean true if autoreply */ - protected function is_autoreply($txt) + protected function isAutoreply($txt) { if (preg_match('/[\[\(]?[Aa]uto[-\s]?[Rr]e(ply|sponse)[\]\)]/', $txt)) { return true; @@ -453,7 +453,7 @@ abstract class ImPlugin extends Plugin if ($this->handleCommand($user, $notice_text)) { common_log(LOG_INFO, "Command message by $from handled."); return; - } else if ($this->is_autoreply($notice_text)) { + } else if ($this->isAutoreply($notice_text)) { common_log(LOG_INFO, 'Ignoring auto reply from ' . $from); return; } else if ($this->is_otr($notice_text)) { diff --git a/plugins/Irc/IrcPlugin.php b/plugins/Irc/IrcPlugin.php index 55645d92fd..dc077eeabb 100644 --- a/plugins/Irc/IrcPlugin.php +++ b/plugins/Irc/IrcPlugin.php @@ -244,7 +244,7 @@ class IrcPlugin extends ImPlugin { if ($this->handle_channel_command($user, $channel, $notice_text)) { common_log(LOG_INFO, "Command message by $nick handled."); return; - } else if ($this->is_autoreply($notice_text)) { + } else if ($this->isAutoreply($notice_text)) { common_log(LOG_INFO, 'Ignoring auto reply from ' . $nick); return; } else if ($this->is_otr($notice_text)) { -- 2.39.5