Module Functions - on topic change? (like join/quit/part in peak mod)
| Page: 1 |
| From User | Message Body |
|---|---|
| Farjad |
Post #520 |
|
Member Date: 2:38 am, May 21 2007 Posts: 8 |
Is there a such thing as on topic change like there is join / quit / part etc. |
| Mad_Clog |
Post #521 |
|
Member Date: 12:57 pm, May 21 2007 Posts: 176 |
Add the following to your mod's config file: type topic module function Then add: topic your_mod your_func where your_mod is the name of the module and your_func is the of the function inside the module |
| Farjad |
Post #522 |
|
Member Date: 12:28 am, May 22 2007 Posts: 8 |
Thanks, by the way what would the function use, $args, $line, etc? Last edited by Farjad at 12:38 am, May 22 2007 |
| Mad_Clog |
Post #523 |
|
Member Date: 7:26 am, May 22 2007 Posts: 176 |
not sure, just make a test function in your mod where you output those vars in console or something for debugging. Example: Code public function topicTest($line, args) { echo '$line:'."\r\n"; print_r($line); echo '$args:'."\r\n"; print_r($args); } Last edited by Mad_Clog at 8:15 am, May 22 2007 |
