Changes to dynloader et al to handle ICQ module being written
[citadel.git] / citadel / citserver.c
index 5543386a978e858280b5d4dfbf719c44d166b23f..45d23b95e9f5c879bd8b6ee8debcb1a97d6182f6 100644 (file)
@@ -41,6 +41,7 @@
 struct CitContext *ContextList = NULL;
 int ScheduledShutdown = 0;
 int do_defrag = 0;
+int (*CtdlSendExpressMessageFunc) (char *, char *, char *) = NULL;
 
 /*
  * Various things that need to be initialized at startup
@@ -1257,6 +1258,9 @@ void *context_loop(struct CitContext *con)
                                    ERROR);
                        }
 
+               /* Run any after-each-command outines registered by modules */
+               PerformSessionHooks(EVT_CMD);
+
                } while(strncasecmp(cmdbuf, "QUIT", 4));
 
        cleanup(EXIT_NORMAL);