if(pc_currchar->callnum!=0)
if (pc_currchar->callnum > 0)
void command_gmtransfer(UOXSOCKET s)// Escilate a Counsellor Page into the GM Queue{	int i;	int x2=0;	P_CHAR pc_currchar = currchar[s];		if(pc_currchar->callnum!=0)	{		if(!pc_currchar->isGM()) //Char is a counselor		{			for(i=1;i<MAXPAGES;i++)			{				if(gmpages[i].handled==1)				{					gmpages[i].handled=0;					gmpages[i].name = counspages[pc_currchar->callnum].name;					gmpages[i].reason = counspages[pc_currchar->callnum].reason;					gmpages[i].serial = counspages[pc_currchar->callnum].serial;					time_t current_time = time(0);					struct tm *local = localtime(&current_time);					sprintf(gmpages[i].timeofcall, "%02d:%02d:%02d", local->tm_hour, local->tm_min, local->tm_sec);					x2++;					break;				}			}			if (x2==0)			{				sysmessage(s, tr("The GM Queue is currently full. Contact the shard operator"));				sysmessage(s, tr("and ask them to increase the size of the queue."));			}			else			{				sysmessage(s, tr("Call successfully transferred to the GM queue."));				donewithcall(s,1);			}		}		else		{			sysmessage(s, tr("Only Counselors may use this command."));		}	}	else	{		sysmessage(s, tr("You are not currently on a call"));	}}