* Subscribe command
*/
if (!strcasecmp(cmd, "subscribe")) {
- serv_printf("SUBS subscribe|%s|%s|%s|%s/listsub",
+ serv_printf("SUBS subscribe|%s|%s|%s|%s://%s/listsub",
room,
email,
subtype,
+ (is_https ? "https" : "http"),
WC->http_host
);
serv_getln(buf, sizeof buf);
* Unsubscribe command
*/
else if (!strcasecmp(cmd, "unsubscribe")) {
- serv_printf("SUBS unsubscribe|%s|%s|%s/listsub",
+ serv_printf("SUBS unsubscribe|%s|%s|%s://%s/listsub",
room,
email,
+ (is_https ? "https" : "http"),
WC->http_host
);
serv_getln(buf, sizeof buf);