summaryrefslogtreecommitdiff
path: root/src/misc.c
diff options
context:
space:
mode:
authorcertus certus@31f1291d-b8d6-0310-a050-a5561fc1590b <certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2006-07-15 10:29:34 +0000
committercertus certus@31f1291d-b8d6-0310-a050-a5561fc1590b <certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2006-07-15 10:29:34 +0000
commit339e175f44976837c73477477dbf5d721d705073 (patch)
tree17dd48a99368d902a03316002f0df7f72b9e12ae /src/misc.c
parent94e1160fcf8f523fcc30e84a11071dcf70868e6d (diff)
# BUILD : 1.7.14 (1089) # BUGS : 549 # NOTES : applied trystan's patch for the SJOIN issue.
git-svn-id: svn://svn.anope.org/anope/trunk@1089 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@813 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/misc.c')
-rw-r--r--src/misc.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/misc.c b/src/misc.c
index 855de4725..3592f7f65 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -751,6 +751,28 @@ char *myStrSubString(const char *src, int start, int end)
/*************************************************************************/
+void protocol_debug(char *source, char *cmd, int argc, char **argv)
+{
+ int i;
+
+ if (protocoldebug) {
+ if (source)
+ alog("debug: Source %s", source);
+ if (cmd)
+ alog("debug: Token %s", cmd);
+ if (argc) {
+ for (i = 0; i < argc; i++) {
+ alog("debug: av[%d] = %s", i, argv[i]);
+ }
+ } else {
+ alog("debug: av[0] = NULL");
+ }
+ }
+ return;
+}
+
+/*************************************************************************/
+
/**
* Clean up the buffer for extra spaces
* @param str to clean up