Menu

User modes

Help
2003-03-20
2003-03-22
  • Nobody/Anonymous

    Hi,

    I want to register nickname and I need to recive ":services. MODE xxxx +e" from irc, the function _mode doesn't check this possibility... There is any way to not modify messagehandler.php?

    Thanks in advanced!

    F

     
    • Mirco Bauer

      Mirco Bauer - 2003-03-22

      yes there is! or more: yes there should be! :)
      what you need is the messagehandler API, the problem is I never tested it and I think it will not work...

      The idea of the messagehandler API is to allow developer to extend SmartIRC without changing the core code of it...

      you could add a function called "mode" in Net_SmartIRC_Messagehandler (messagehandler.php)

      if the API would work then you could define an own messagehandler class that extends the default one of SmartIRC...

      an other possibility is to create a actionhandler with the type SMARTIRC_TYPE_UNKNOWN, that will catch _all_ not reconized types, which includes the MODE change, but be  careful, check the message before you process it! you may get much messages with that actionhandler type which you don't want ;)

       

Log in to post a comment.