summaryrefslogtreecommitdiff
path: root/plugins/Irc/extlib/phergie/Phergie/Plugin/Abstract.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Irc/extlib/phergie/Phergie/Plugin/Abstract.php')
-rwxr-xr-xplugins/Irc/extlib/phergie/Phergie/Plugin/Abstract.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Irc/extlib/phergie/Phergie/Plugin/Abstract.php b/plugins/Irc/extlib/phergie/Phergie/Plugin/Abstract.php
index d7e0d351a..b7105ecdb 100755
--- a/plugins/Irc/extlib/phergie/Phergie/Plugin/Abstract.php
+++ b/plugins/Irc/extlib/phergie/Phergie/Plugin/Abstract.php
@@ -270,7 +270,7 @@ abstract class Phergie_Plugin_Abstract
*/
public function getEvent()
{
- if (empty($this->connection)) {
+ if (empty($this->event)) {
throw new Phergie_Plugin_Exception(
'Event cannot be accessed before one is set',
Phergie_Plugin_Exception::ERR_NO_EVENT