$OpenBSD: patch-mcabber_main_c,v 1.1 2016/03/24 20:04:25 mestre Exp $
--- mcabber/main.c.orig	Sat Feb 27 12:41:08 2016
+++ mcabber/main.c	Thu Mar 24 17:36:48 2016
@@ -455,6 +455,19 @@ int main(int argc, char **argv)
   if (ret == -2)
     exit(EXIT_FAILURE);
 
+  if (settings_opt_get("events_command")) {
+    if (pledge("stdio rpath wpath cpath fattr inet dns tty proc exec", NULL) ==
+      -1) {
+      fprintf(stderr, "Cannot pledge: %s\n", strerror(errno));
+      exit(EXIT_FAILURE);
+    }
+  } else {
+    if (pledge("stdio rpath wpath cpath fattr inet dns tty", NULL) == -1) {
+      fprintf(stderr, "Cannot pledge: %s\n", strerror(errno));
+      exit(EXIT_FAILURE);exit(EXIT_FAILURE);
+    }
+  }
+
   /* Display configuration settings */
   {
     const char *p;
