void handle_gline(char **parameters, int pcnt, userrec *user);
void handle_zline(char **parameters, int pcnt, userrec *user);
void handle_qline(char **parameters, int pcnt, userrec *user);
-
+void handle_server(char **parameters, int pcnt, userrec *user);
/** Special functions for processing server to server traffic
*/
[Editors]
-Focused=4
+Focused=1
Order=2,4,6,3,7,25,5,24,39,42,43,-1,1,46,0,49
[Editor_0]
[Editor_1]
Open=1
-Top=0
-CursorCol=1
-CursorRow=1
-TopLine=1
+Top=1
+CursorCol=42
+CursorRow=2883
+TopLine=2854
LeftChar=1
[Editor_2]
[Editor_4]
Open=1
-Top=1
-CursorCol=7
-CursorRow=557
-TopLine=545
+Top=0
+CursorCol=20
+CursorRow=639
+TopLine=626
LeftChar=1
[Editor_5]
[Editor_20]
Open=1
Top=0
-CursorCol=13
-CursorRow=629
-TopLine=592
+CursorCol=34
+CursorRow=662
+TopLine=609
LeftChar=1
[Editor_21]
[Editor_43]
Open=1
Top=0
-CursorCol=4
-CursorRow=688
-TopLine=661
+CursorCol=1
+CursorRow=638
+TopLine=614
LeftChar=1
[Editor_44]
Open=1
Top=0
-CursorCol=6
-CursorRow=98
-TopLine=44
+CursorCol=64
+CursorRow=64
+TopLine=29
LeftChar=1
[Editor_45]
Open=1
[Editor_50]
Open=1
Top=0
-CursorCol=2
-CursorRow=301
-TopLine=248
+CursorCol=65
+CursorRow=35
+TopLine=19
LeftChar=1
}
}
+void handle_server(char **parameters, int pcnt, userrec *user)
+{
+ WriteServ(user->fd,"666 %s :You cannot identify as a server, you are a USER. IRC Operators informed.",user->nick);
+ WriteOpers("*** WARNING: %s attempted to issue a SERVER command and is registered as a user!",user->nick);
+}
void handle_info(char **parameters, int pcnt, userrec *user)
{
createcommand("GLINE",handle_gline,'o',1);
createcommand("ZLINE",handle_zline,'o',1);
createcommand("QLINE",handle_qline,'o',1);
+ createcommand("SERVER",handle_server,0,0);
}
void process_buffer(const char* cmdbuf,userrec *user)