When running the binds, you can use the array
dataform $data['nick'] etc. However, this only works
for the prefix bind. For all other binds, $data is not an
array, it is the first string in it's array - which means
$data is $data['from'].
You merely need to send it as array($data) again,
here is the code, find and replace each of these
functions in wollabot.php:
function check_onconnect($data) {
// Checks for onconnect triggers
$this->print_log("Checking for on-connect
events.");
if (!is_array($this->bound_onconnect)) return
false;
foreach ($this->bound_onconnect as $method) {
$this->call_module_method($method
['modulename'], $method['method'], array($data));
}
}
function check_prefixes($data) {
// Checks for prefix triggers
if (is_array($this->bound_prefixes)) {
foreach($this->bound_prefixes as $prefix =>
$methods) {
if (substr($data['message'], 0, strlen
($prefix)) == $prefix) {
foreach($methods as $method => $info)
$this->call_module_method($info
['modulename'], $info['method'], array($data));
}
}
}
}
function check_channel($data) {
// Check channel trigger
if (is_array($this->bound_chan)) {
foreach($this->bound_chan as $channel =>
$methods) {
if ($data['channel'] == $channel ||
$channel == 'all') {
foreach($methods as $method => $info)
$this->call_module_method($info
['modulename'], $info['method'], array($data));
}
}
}
}
Logged In: YES
user_id=968369
This didn't work for me until I modified the parse_incoming
function as well.
In parse_incoming, change this line:
$this->call_module_method($method['modulename'],
$method['method'], $data);
to:
$this->call_module_method($method['modulename'],
$method['method'], array($data));