summaryrefslogtreecommitdiff
path: root/functions.c
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2019-05-12 20:56:55 +0100
committerLuke Bratch <luke@bratch.co.uk>2019-05-12 20:56:55 +0100
commite18e670f43f0e7b126f209c040126aa02511fa32 (patch)
tree798e297304c0ce051847359ebf32af63503b67c8 /functions.c
parent34836ab2c9124e17d80bd8e8a1601398297391a8 (diff)
Completely rewrite configuration file reading to remove lots of duplicated code and to simplify things. Alter everything that called the old functions.
Diffstat (limited to 'functions.c')
-rw-r--r--functions.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/functions.c b/functions.c
index c6bea40..1d7d7d6 100644
--- a/functions.c
+++ b/functions.c
@@ -66,7 +66,6 @@ void stripprefix(char *string) {
// Copy the old string into a new one, but...
for (size_t i = 1; i < strlen(string); i++) {
- printf("i: %zd. strlen: %zd.\n", i, strlen(string));
string2[i - 1] = string[i];
}
@@ -98,7 +97,6 @@ void extractfinalparameter(char *string) {
// Find the colon
for (size_t i = 0; i < strlen(string); i++) {
- printf("i: %zd. strlen: %zd.\n", i, strlen(string));
if (string[i] == ':') {
printf("Found colon at position %zd!\n", i);
colonpos = i;
@@ -114,7 +112,6 @@ void extractfinalparameter(char *string) {
// Build a new string starting from the next position after the colon
int counter = 0;
for (size_t i = colonpos + 1; i < strlen(string); i++) {
- printf("i: %zd. strlen: %zd.\n", i, strlen(string));
string2[counter] = string[i];
counter++;
}
@@ -144,7 +141,6 @@ void extractnickfromprefix(char *string) {
// Find the bang
for (size_t i = 0; i < strlen(string); i++) {
- printf("i: %zd. strlen: %zd.\n", i, strlen(string));
if (string[i] == '!') {
printf("Found bang at position %zd!\n", i);
bangpos = i;