mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Added prof_on_start function to hello world plugin
This commit is contained in:
parent
4f42bb570d
commit
586ea10071
7
helloworld.py
Normal file
7
helloworld.py
Normal file
@ -0,0 +1,7 @@
|
||||
import prof
|
||||
|
||||
def prof_on_start():
|
||||
helloworld()
|
||||
|
||||
def helloworld():
|
||||
prof.cons_show("Hello world!")
|
@ -55,7 +55,7 @@ api_init(void)
|
||||
|
||||
if (pModule != NULL) {
|
||||
|
||||
pFunc = PyObject_GetAttrString(pModule, "helloworld");
|
||||
pFunc = PyObject_GetAttrString(pModule, "prof_on_start");
|
||||
|
||||
if (pFunc == NULL) {
|
||||
cons_show("NULL pfunc");
|
||||
|
Loading…
Reference in New Issue
Block a user