Menu

Net_SmartIRC_data $channel

Help
2003-08-14
2003-08-14
  • Nobody/Anonymous

    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

     
    • Mirco Bauer

      Mirco Bauer - 2003-08-14

      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)

       
    • Nobody/Anonymous

      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

       
      • Mirco Bauer

        Mirco Bauer - 2003-08-14

        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

         

Log in to post a comment.