void cmd_lout(char *argbuf)
{
if (CC->logged_in)
- logout();
+ CtdlUserLogout();
cprintf("%d logged out.\n", CIT_OK);
}
* might make references to "CC" assuming it's the right one.
*/
become_session(con);
- logout();
+ CtdlUserLogout();
PerformSessionHooks(EVT_STOP);
become_session(NULL);
if (CtdlAccessCheck(ac_logged_in)) return;
extract_token(euid, cmdbuf, 0, '|', sizeof euid);
- msgnum = locate_message_by_euid(euid, &CC->room);
+ msgnum = CtdlLocateMessageByEuid(euid, &CC->room);
if (msgnum <= 0L) {
cprintf("%d not found\n", ERROR + MESSAGE_NOT_FOUND);
return;
* Citadel always sets the message EUID to the iCalendar UID of
* the event, this will work.
*/
- msgnum_being_replaced = locate_message_by_euid(uid, &CC->room);
+ msgnum_being_replaced = CtdlLocateMessageByEuid(uid, &CC->room);
CtdlGetRoom(&CC->room, hold_rm); /* return to saved room */
return;
}
- if (CC->logged_in) logout(); /* Client may try to log in twice. Handle this. */
+ if (CC->logged_in) CtdlUserLogout(); /* Client may try to log in twice. Handle this. */
if (CC->nologin) {
cprintf("<failure xmlns=\"urn:ietf:params:xml:ns:xmpp-sasl\">");
void jabber_non_sasl_authenticate(char *iq_id, char *username, char *password, char *resource) {
int result;
- if (CC->logged_in) logout(); /* Client may try to log in twice. Handle this. */
+ if (CC->logged_in) CtdlUserLogout(); /* Client may try to log in twice. Handle this. */
result = CtdlLoginExistingUser(NULL, username);
if (result == login_ok) {
/*CtdlLogPrintf(CTDL_DEBUG, "Exclusive ID: <%s> for room <%s>\n",
msg->cm_fields['E'], CC->room.QRname);*/
- old_msgnum = locate_message_by_euid(msg->cm_fields['E'], &CC->room);
+ old_msgnum = CtdlLocateMessageByEuid(msg->cm_fields['E'], &CC->room);
if (old_msgnum > 0L) {
CtdlLogPrintf(CTDL_DEBUG, "ReplicationChecks() replacing message %ld\n", old_msgnum);
CtdlDeleteMessages(CC->room.QRname, &old_msgnum, 1, "");
msg->cm_fields['W'] = strdup(recipient);
CtdlMailboxName(actual_rm, sizeof actual_rm, &userbuf, MAILROOM);
CtdlSaveMsgPointerInRoom(actual_rm, newmsgid, 0, msg);
- BumpNewMailCounter(userbuf.usernum);
+ CtdlBumpNewMailCounter(userbuf.usernum);
if (!IsEmptyStr(config.c_funambol_host) || !IsEmptyStr(config.c_pager_program)) {
/* Generate a instruction message for the Funambol notification
* server, in the same style as the SMTP queue