small fixes on the "check if next page exists" function
This commit is contained in:
		| @@ -100,10 +100,12 @@ def process_command(cmd): | |||||||
|         else: |         else: | ||||||
|             # check if the next page exists, e.g. 2000a => 2000b |             # check if the next page exists, e.g. 2000a => 2000b | ||||||
|             curid = glob.curpage.get_page_id() |             curid = glob.curpage.get_page_id() | ||||||
|             if curid[-1:].isalpha(): |             if curid == -1: | ||||||
|  |                 send_error("Keine n"+cept['UMLAUT']+"achste Seite gefunden.") | ||||||
|  |             if str(curid[-1:]).isalpha(): | ||||||
|                 # aus 2000a 2000b machen: |                 # aus 2000a 2000b machen: | ||||||
|                 nextid = curid[:-1] + chr(ord(curid[-1:])+1) |                 nextid = curid[:-1] + chr(ord(curid[-1:])+1) | ||||||
|                 check_and_send_page(nextid, "Keine n"+str(cept['UMLAUT'])+"achste Seite gefunden.") |                 check_and_send_page(nextid, "Keine n"+cept['UMLAUT']+"achste Seite gefunden.") | ||||||
|  |  | ||||||
|     # special commands: |     # special commands: | ||||||
|     if cmd == "!1" + cept.TER: |     if cmd == "!1" + cept.TER: | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	