Anonymous avatar Anonymous committed ffb21a7

Remove windows newlines (^M).

Comments (0)

Files changed (1)

modules/m_dline.c

 static int valid_comment(char *comment);
 static int flush_write(struct Client *, FILE *, char *, char *);
 static int remove_temp_dline(struct ConfItem *);
-static int apply_dline(struct Client *, const char *, int, char *);
+static int apply_dline(struct Client *, const char *, int, char *);
 static int apply_undline(struct Client *, const char *);
 
 /* mo_dline()
 	return 0;
 }
 
-static int
-me_dline(struct Client *client_p, struct Client *source_p, int parc, const char **parv)
-{
-	int tdline_time = atoi(parv[1]);
-	/* Since this is coming over a server link, assume that the originating
-	 * server did the relevant permission/sanity checks...
-	 */
-
-	if(!IsPerson(source_p))
-		return 0;
-
-	if(!find_shared_conf(source_p->username, source_p->host,
-				source_p->servptr->name, tdline_time > 0 ? SHARED_TDLINE : SHARED_PDLINE))
-	{
-		sendto_realops_snomask(SNO_DEBUG, L_NETWIDE, "undline failed %s %s %s",
-				source_p->name, parv[1], parv[2]);
-		return 0;
-	}
-
-	apply_dline(source_p, parv[2], tdline_time, LOCAL_COPY(parv[3]));
-
-	check_dlines();
-	return 0;
-}
-
-static int
-me_undline(struct Client *client_p, struct Client *source_p, int parc, const char **parv)
-{
-	if(!IsPerson(source_p))
-		return 0;
-
-	if(!find_shared_conf(source_p->username, source_p->host,
-				source_p->servptr->name, SHARED_UNDLINE))
-		return 0;
-
-	apply_undline(source_p, parv[1]);
-
-	return 0;
+static int
+me_dline(struct Client *client_p, struct Client *source_p, int parc, const char **parv)
+{
+	int tdline_time = atoi(parv[1]);
+	/* Since this is coming over a server link, assume that the originating
+	 * server did the relevant permission/sanity checks...
+	 */
+
+	if(!IsPerson(source_p))
+		return 0;
+
+	if(!find_shared_conf(source_p->username, source_p->host,
+				source_p->servptr->name, tdline_time > 0 ? SHARED_TDLINE : SHARED_PDLINE))
+	{
+		sendto_realops_snomask(SNO_DEBUG, L_NETWIDE, "undline failed %s %s %s",
+				source_p->name, parv[1], parv[2]);
+		return 0;
+	}
+
+	apply_dline(source_p, parv[2], tdline_time, LOCAL_COPY(parv[3]));
+
+	check_dlines();
+	return 0;
+}
+
+static int
+me_undline(struct Client *client_p, struct Client *source_p, int parc, const char **parv)
+{
+	if(!IsPerson(source_p))
+		return 0;
+
+	if(!find_shared_conf(source_p->username, source_p->host,
+				source_p->servptr->name, SHARED_UNDLINE))
+		return 0;
+
+	apply_undline(source_p, parv[1]);
+
+	return 0;
 }
 
 static int
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.