hi,
why does the the channel class variable of net_smartIRC_data is string and not array like the public channel var? because how to get the channel password, if set. wouldnt it better something like that:
$data->channel->name
$data->channel->value ?
cu
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
first your english is ugly :)
and why it's a string instead of an object (this is what you mean), is because the ChannelSync is optional, it would also break BC (backwards compatibilty).
If you need the channel object then get it :) the name of the channel you have... ($data->channel)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hm :p,
i want to make a rejoin script if the bot is kicked. but if the channel has a password; how to rejoin. if channelsync is on and the bot is kicked the channel is no more in the array.
bye
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
ok, here I fully agree, this is a problem which I will solve... the idea of passing the channel object when its a channel message is not bad... I will see how I solve it...
hi,
why does the the channel class variable of net_smartIRC_data is string and not array like the public channel var? because how to get the channel password, if set. wouldnt it better something like that:
$data->channel->name
$data->channel->value ?
cu
first your english is ugly :)
and why it's a string instead of an object (this is what you mean), is because the ChannelSync is optional, it would also break BC (backwards compatibilty).
If you need the channel object then get it :) the name of the channel you have... ($data->channel)
hm :p,
i want to make a rejoin script if the bot is kicked. but if the channel has a password; how to rejoin. if channelsync is on and the bot is kicked the channel is no more in the array.
bye
ok, here I fully agree, this is a problem which I will solve... the idea of passing the channel object when its a channel message is not bad... I will see how I solve it...
please read this post about it:
https://sourceforge.net/forum/forum.php?thread_id=916890&forum_id=204500