Add nomobility plugin to stop you from sending messages to mobile users. Right now it forces it for all messages while i'm dev'n. This will be fixed before I push, but I need some more functionality here first ;)
/*
* Purple-Schedule - Schedule reminders/pounces at specified times.
* Copyright (C) 2006-2008
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02111-1301, USA.
*/
/* If you can't figure out what this line is for, DON'T TOUCH IT. */
#include"../common/pp_internal.h"
#include<account.h>
#include<debug.h>
typedefstruct_PurpleSchedulePurpleSchedule;
typedefstruct_ScheduleActionScheduleAction;
typedefenum
{
SCHEDULE_ACTION_NONE=0,/* Vegetable Schedule */
SCHEDULE_ACTION_POPUP=1<<0,/* Popup a dialog */
SCHEDULE_ACTION_CONV=1<<1,/* Write in conversations */
SCHEDULE_ACTION_STATUS=1<<3,/* Set status [message] to something */
}ScheduleActionType;
typedefenum
{
PURPLE_SCHEDULE_TYPE_DATE,/* Schedule for a date */
PURPLE_SCHEDULE_TYPE_DAY/* Schedule for a day (eg. Sunday) */
}ScheduleType;
typedefenum
{
PURPLE_SCHEDULE_DAY_ALL,
PURPLE_SCHEDULE_DAY_SUN,
PURPLE_SCHEDULE_DAY_MON,
PURPLE_SCHEDULE_DAY_TUE,
PURPLE_SCHEDULE_DAY_WED,
PURPLE_SCHEDULE_DAY_THR,
PURPLE_SCHEDULE_DAY_FRI,
PURPLE_SCHEDULE_DAY_SAT
}ScheduleDay;
struct_PurpleSchedule
{
ScheduleTypetype;
char*name;
union
{
intdate;
ScheduleDayday;
}d;
intmonth;/* 0 for every month */
intyear;/* 0 for every year */
inthour;
intminute;
time_ttimestamp;
gbooleanactive;/* we can deactivate some scheduler */
GList*actions;/* A list of ScheduleActions */
};
struct_ScheduleAction
{
ScheduleActionTypetype;
union
{
char*popup_message;/* popup */
struct
{
char*message;/* send message */
char*who;
PurpleAccount*account;
}send;
char*status_title;/* title of the status to change to */