Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions contrib/plugins/helloworld.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


@plugin.method("hello")
def hello(name, plugin):
def hello(plugin, name="world"):
"""This is the documentation string for the hello-function.
It gets reported as the description when registering the function
Expand All @@ -25,12 +25,12 @@ def init(options, configuration, plugin):


@plugin.subscribe("connect")
def on_connect(id, address, plugin):
def on_connect(plugin, id, address):
plugin.log("Received connect event for peer {}".format(id))


@plugin.subscribe("disconnect")
def on_disconnect(id, plugin):
def on_disconnect(plugin, id):
plugin.log("Received disconnect event for peer {}".format(id))


Expand Down