remove unused var
This commit is contained in:
parent
75ba2f7ac3
commit
0eb9ccd95d
@ -36,7 +36,7 @@ func SMSListen(store ChatStore, plugins *plugins.Plugins) {
|
|||||||
log.Printf("SMS: listening on %q\n", smsPort)
|
log.Printf("SMS: listening on %q\n", smsPort)
|
||||||
|
|
||||||
http.HandleFunc("/_sms", func(w http.ResponseWriter, r *http.Request) {
|
http.HandleFunc("/_sms", func(w http.ResponseWriter, r *http.Request) {
|
||||||
var msg, from, id, date string
|
var msg, from, id string
|
||||||
emailSend := false
|
emailSend := false
|
||||||
user, pass, ok := r.BasicAuth()
|
user, pass, ok := r.BasicAuth()
|
||||||
if !ok {
|
if !ok {
|
||||||
@ -73,7 +73,6 @@ func SMSListen(store ChatStore, plugins *plugins.Plugins) {
|
|||||||
case http.MethodGet:
|
case http.MethodGet:
|
||||||
// to={TO}&from={FROM}&message={MESSAGE}&id={ID}&date={TIMESTAMP}
|
// to={TO}&from={FROM}&message={MESSAGE}&id={ID}&date={TIMESTAMP}
|
||||||
id = r.URL.Query().Get("id")
|
id = r.URL.Query().Get("id")
|
||||||
date = r.URL.Query().Get("date")
|
|
||||||
msg = r.URL.Query().Get("message")
|
msg = r.URL.Query().Get("message")
|
||||||
from = r.URL.Query().Get("from")
|
from = r.URL.Query().Get("from")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user