Zusätzliches Pattern für GPS

This commit is contained in:
Andreas Bielawski 2016-08-24 17:39:35 +02:00
parent a8ee091fab
commit c80d766f62

View File

@ -8,14 +8,18 @@ function gps:init(config)
"google.de/maps/@([^,]*)[,%s]([^,]*)", "google.de/maps/@([^,]*)[,%s]([^,]*)",
"google.com/maps/@([^,]*)[,%s]([^,]*)", "google.com/maps/@([^,]*)[,%s]([^,]*)",
"google.de/maps/place/@([^,]*)[,%s]([^,]*)", "google.de/maps/place/@([^,]*)[,%s]([^,]*)",
"google.com/maps/place/@([^,]*)[,%s]([^,]*)" "google.com/maps/place/@([^,]*)[,%s]([^,]*)",
"google.de/maps/place/.+/@([^,]*)[,%s]([^,]*)",
"google.com/maps/place/.+/@([^,]*)[,%s]([^,]*)"
} }
gps.inline_triggers = { gps.inline_triggers = {
"^gps ([^,]*)[,%s]([^,]*)$", "^gps ([^,]*)[,%s]([^,]*)$",
"google.de/maps/@([^,]*)[,%s]([^,]*)", "google.de/maps/@([^,]*)[,%s]([^,]*)",
"google.com/maps/@([^,]*)[,%s]([^,]*)", "google.com/maps/@([^,]*)[,%s]([^,]*)",
"google.de/maps/place/@([^,]*)[,%s]([^,]*)", "google.de/maps/place/@([^,]*)[,%s]([^,]*)",
"google.com/maps/place/@([^,]*)[,%s]([^,]*)" "google.com/maps/place/@([^,]*)[,%s]([^,]*)",
"google.de/maps/place/.+/@([^,]*)[,%s]([^,]*)",
"google.com/maps/place/.+/@([^,]*)[,%s]([^,]*)"
} }
gps.doc = [[* gps.doc = [[*
]]..config.cmd_pat..[[gps* _<Breitengrad>_,_<Längengrad>_: Sendet Karte mit diesen Koordinaten]] ]]..config.cmd_pat..[[gps* _<Breitengrad>_,_<Längengrad>_: Sendet Karte mit diesen Koordinaten]]