// Open a url with the webwindow
CON_COMMAND( smod_panel_weburl_show, NULL )
{
	// Maybe add size to args too?
	if ( args.ArgC() != 2 )
	{
		Msg( "Usage: webwindowsingle_show url\n" );
		return;
	}

	OpenWebWindow ( args [ 1 ], args [ 1 ] );
}
// Open a url with the webwindow and set the title
CON_COMMAND( smod_panel_webtitleurl_show, NULL )
{
	// Maybe add size to args too?
	if ( args.ArgC() <= 2 )
	{
		Msg( "Usage: webwindow_show <title> url\n" );
		return;
	}

	OpenWebWindow( args [ 1 ], args [ 2 ] );
}
ProtectedMethod void CGUICommunity::OnCommand( const char *command )
{
	// TODO: Fix
	if ( !Q_strcmp( command, "news" ) )
	{
		Close();
		const char *url = g_Comm.All()->GetString( command, LF_URL_NEWS );
		OpenWebWindow( "#lf_community_news", url );
	}
	else if ( !Q_strcmp( command, "forums" ) )
	{
		Close();
		const char *url = g_Comm.All()->GetString( command, LF_URL_FORUMS );
		OpenWebWindow( "#lf_community_forums", url );
	}
	else if ( !Q_strcmp( command, "irc" ) )
	{
		Close();
		const char *url = g_Comm.All()->GetString( command, LF_URL_IRC );
		OpenWebWindow( "#lf_community_irc", url );
	}
	else if ( !Q_strcmp( command, "faq" ) )
	{
		Close();
		const char *url = g_Comm.All()->GetString( command, LF_URL_FAQ );
		OpenWebWindow( "#lf_community_faq", url );
	}
	else if ( !Q_strcmp( command, "dev" ) )
	{
		Close();
		const char *url = g_Comm.All()->GetString( command, LF_URL_DEV );
		OpenWebWindow( "#lf_community_dev", url );
	}

	BaseClass::OnCommand( command );
}