Index: trunk/tools/alertbot/irc/alertbot.php |
— | — | @@ -126,13 +126,13 @@ |
127 | 127 | } |
128 | 128 | |
129 | 129 | //this stuff is independent of connect and so has to be executed only once |
130 | | - $irc = &new Net_SmartIRC(); //init new IRC connection |
| 130 | + $irc = new Net_SmartIRC(); //init new IRC connection |
131 | 131 | $irc->setDebug(SMARTIRC_DEBUG_NONE); |
132 | 132 | $irc->setUseSockets(TRUE); |
133 | 133 | $irc->setChannelSyncing(FALSE); |
134 | 134 | $irc->setCtcpVersion("alert.bot wikimedia edition by harddisk_wp"); |
135 | 135 | |
136 | | - $alertbot_o=&new alertbot(); //initialize SmartIRC handlers |
| 136 | + $alertbot_o = new alertbot(); //initialize SmartIRC handlers |
137 | 137 | $irc->registerTimehandler(1000, $alertbot_o, 'check_msgs'); |
138 | 138 | $irc->registerTimehandler(1000, $alertbot_o, 'check_rep'); |
139 | 139 | $irc->registerActionhandler(SMARTIRC_TYPE_CHANNEL,"^!kill",$alertbot_o,"killmsg"); |