(peer_id, payload, plugin, message=None, **kwargs)
| 6 | |
| 7 | @plugin.hook('custommsg', filters=[0xaaff]) |
| 8 | def on_custommsg(peer_id, payload, plugin, message=None, **kwargs): |
| 9 | plugin.log("Got custommessage_b {msg} from peer {peer_id}".format( |
| 10 | msg=payload, |
| 11 | peer_id=peer_id |
| 12 | )) |
| 13 | return {'result': 'continue'} |
| 14 | |
| 15 | |
| 16 | plugin.run() |