Removed semicolons from python plugins
This commit is contained in:
@@ -27,7 +27,7 @@ def cmd_browser(url):
|
|||||||
if (url != None):
|
if (url != None):
|
||||||
link = url
|
link = url
|
||||||
else:
|
else:
|
||||||
jid = prof.get_current_recipient();
|
jid = prof.get_current_recipient()
|
||||||
|
|
||||||
# check if in chat window
|
# check if in chat window
|
||||||
if (jid != None):
|
if (jid != None):
|
||||||
@@ -36,7 +36,7 @@ def cmd_browser(url):
|
|||||||
if jid in lastlink.keys():
|
if jid in lastlink.keys():
|
||||||
link = lastlink[jid]
|
link = lastlink[jid]
|
||||||
else:
|
else:
|
||||||
prof.cons_show("No links found from " + jid);
|
prof.cons_show("No links found from " + jid)
|
||||||
|
|
||||||
# not in chat window
|
# not in chat window
|
||||||
else:
|
else:
|
||||||
|
|||||||
@@ -94,4 +94,4 @@ def retrieve_scores_json():
|
|||||||
f = urllib2.urlopen(req)
|
f = urllib2.urlopen(req)
|
||||||
response = f.read()
|
response = f.read()
|
||||||
f.close()
|
f.close()
|
||||||
return json.loads(response);
|
return json.loads(response)
|
||||||
|
|||||||
@@ -5,15 +5,15 @@ win_tag = "Upper echo";
|
|||||||
def prof_init(version, status):
|
def prof_init(version, status):
|
||||||
prof.cons_show("python-test: init, " + version + ", " + status)
|
prof.cons_show("python-test: init, " + version + ", " + status)
|
||||||
prof.register_command("/python", 0, 1, "/python", "python-test", "python-test", cmd_python)
|
prof.register_command("/python", 0, 1, "/python", "python-test", "python-test", cmd_python)
|
||||||
prof.register_command("/upper", 0, 1, "/upper", "Uppercase input string", "Uppercase input string", cmd_upper);
|
prof.register_command("/upper", 0, 1, "/upper", "Uppercase input string", "Uppercase input string", cmd_upper)
|
||||||
prof.register_timed(timer_test, 10)
|
prof.register_timed(timer_test, 10)
|
||||||
|
|
||||||
def prof_on_start():
|
def prof_on_start():
|
||||||
prof.cons_show("python-test: on_start")
|
prof.cons_show("python-test: on_start")
|
||||||
prof.log_debug("python-test: logged debug");
|
prof.log_debug("python-test: logged debug")
|
||||||
prof.log_info("python-test: logged info");
|
prof.log_info("python-test: logged info")
|
||||||
prof.log_warning("python-test: logged warning");
|
prof.log_warning("python-test: logged warning")
|
||||||
prof.log_error("python-test: logged error");
|
prof.log_error("python-test: logged error")
|
||||||
|
|
||||||
def prof_on_connect(account_name, fulljid):
|
def prof_on_connect(account_name, fulljid):
|
||||||
prof.cons_show("python-test: on_connect, " + account_name + ", " + fulljid)
|
prof.cons_show("python-test: on_connect, " + account_name + ", " + fulljid)
|
||||||
@@ -75,12 +75,12 @@ def timer_test():
|
|||||||
def cmd_upper(line):
|
def cmd_upper(line):
|
||||||
global win_tag;
|
global win_tag;
|
||||||
if prof.win_exists(win_tag) == False:
|
if prof.win_exists(win_tag) == False:
|
||||||
prof.win_create(win_tag, handle_upper);
|
prof.win_create(win_tag, handle_upper)
|
||||||
|
|
||||||
prof.win_focus(win_tag);
|
prof.win_focus(win_tag)
|
||||||
|
|
||||||
if line:
|
if line:
|
||||||
prof.win_process_line(win_tag, line);
|
prof.win_process_line(win_tag, line)
|
||||||
|
|
||||||
def handle_upper(win, line):
|
def handle_upper(win, line):
|
||||||
prof.win_show(win, line.upper());
|
prof.win_show(win, line.upper())
|
||||||
|
|||||||
Reference in New Issue
Block a user