]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/xline.cpp
FIX channel user count stuff. next to do, order the user count list
[user/henk/code/inspircd.git] / src / xline.cpp
index 0443a4f17d56c19f394596a1fa6f587a0ddc31e9..a718b809440c6fd11b9d4c4e201c22c89ceca677 100644 (file)
@@ -53,8 +53,8 @@ extern std::vector<userrec*> local_users;
  * very efficient. I have improved the efficiency of the algorithm in two ways:
  *
  * (1) There are now two lists of items for each linetype. One list holds temporary
- *     items, and the other list holds permenant items (ones which will expire).
- *     Items which are on the permenant list are NEVER checked at all by the
+ *     items, and the other list holds permanent items (ones which will expire).
+ *     Items which are on the permanent list are NEVER checked at all by the
  *     expire_lines() function.
  * (2) The temporary xline lists are always kept in strict numerical order, keyed by 
  *     current time + duration. This means that the line which is due to expire the
@@ -466,7 +466,7 @@ char* matches_exception(const char* host)
 }
 
 
-void gline_set_creation_time(char* host, time_t create_time)
+void gline_set_creation_time(const char* host, time_t create_time)
 {
        for (std::vector<GLine>::iterator i = glines.begin(); i != glines.end(); i++)
        {
@@ -487,7 +487,7 @@ void gline_set_creation_time(char* host, time_t create_time)
        return ;        
 }
 
-void eline_set_creation_time(char* host, time_t create_time)
+void eline_set_creation_time(const char* host, time_t create_time)
 {
        for (std::vector<ELine>::iterator i = elines.begin(); i != elines.end(); i++)
        {
@@ -508,7 +508,7 @@ void eline_set_creation_time(char* host, time_t create_time)
        return;
 }
 
-void qline_set_creation_time(char* nick, time_t create_time)
+void qline_set_creation_time(const char* nick, time_t create_time)
 {
        for (std::vector<QLine>::iterator i = qlines.begin(); i != qlines.end(); i++)
        {
@@ -529,7 +529,7 @@ void qline_set_creation_time(char* nick, time_t create_time)
        return;
 }
 
-void zline_set_creation_time(char* ip, time_t create_time)
+void zline_set_creation_time(const char* ip, time_t create_time)
 {
        for (std::vector<ZLine>::iterator i = zlines.begin(); i != zlines.end(); i++)
        {