/*
* Text to send on connection, these can be stacked and will be sent in this order.
- *
+ *
* !!! UNREAL USERS PLEASE NOTE !!!
* Unreal users will need PROTOCTL HCN to force hybrid connect
* notices.
return STRING;
}
}
-
}
AWAY { return AWAY; }
[0-9]+ {
- yylval.number=atoi(yytext);
+ yylval.number=atoi(yytext);
return NUMBER;
}
{whitespace} /* ignore whitespace */;
-. return yytext[0];
+. return yytext[0];
%%
/*
firedns.c - firedns library
Copyright (C) 2002 Ian Gulliver
-
+
This file has been gutted and mucked with for use in BOPM - see the
real library at http://ares.penguinhosting.net/~ian/ before you judge
firedns based on this..
-
+
This program is free software; you can redistribute it and/or modify
it under the terms of version 2 of the GNU General Public License as
published by the Free Software Foundation.
-
+
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* Resolve IRC host and perform other initialization.
*
- * Parameters:
+ * Parameters:
* None
- *
+ *
* Return:
* None
*/
* Parameters:
* data: Format of data to send
* ...: varargs to format with
- *
+ *
* Return: NONE
*/
void
/* xcalloc
- *
+ *
* A wrapper function for malloc(), for catching memory issues
* and error handling.
*
* Parameters
* bytes: amount in bytes to allocate
- *
+ *
* Return:
* Pointer to allocated memory
*/
*
* Parameters:
* var: pointer to memory to free
- *
+ *
* Return:
* None
*/
/* command_init
- *
+ *
* Do command initialization
*
* Parameters: NONE
* Perform ~1 second actions.
*
* Parameters: NONE
- *
+ *
* Return: NONE
*
*/
}
/* command_create
- *
+ *
* Create a Command struct.
- *
+ *
* Parameters:
* type: Index in COMMAND_TABLE
* param: Parameters to the command (NULL if there are not any)
}
/* command_free
- *
+ *
* Free a command struct
*
* Parameters:
* command: Command struct to free
- *
+ *
* Return: NONE
*/
static void
* A 302 reply was received. The reply is parsed to check if the
* user was an operator. If so any commands they had queued are
* executed.
- *
+ *
* Parameters:
* reply: Reply to USERHOST (ex: :grifferz*=+goats@pc-62-30-219-54-pb.blueyonder.co.uk)
*
* Return: NONE
- *
+ *
*/
void
command_userhost(const char *reply)
}
/* scan_timer
- *
+ *
* Perform actions that are to be performed every ~1 second.
*
* Parameters: NONE
Parameters:
None
-
+
Return:
None
*/
/* scan_irckline
*
- * ss has been found as a positive host and is to be klined.
+ * ss has been found as a positive host and is to be klined.
* Format a kline message using the kline message provided
* as a format, then pass it to irc_send() to be sent to the remote server.
*
* ss: scan_struct containing information regarding host to be klined
* format: kline message to format
* type: type of proxy found (%t format character)
- *
- * Return: NONE
*
+ * Return: NONE
*/
static void
scan_irckline(const struct scan_struct *ss, const char *format, const char *type)
}
/* scan_checkexempt
- *
+ *
* Check mask against exempt list.
- *
+ *
* Parameters:
* mask: Mask to check
- *
+ *
* Return:
* 1 if mask is in list
- * 0 if mask is not in list
+ * 0 if mask is not in list
*/
int
scan_checkexempt(const char *mask, const char *ipmask)