forked from Seven-7/gnuworld-enhanced
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README-DO-UPDATES.txt
188 lines (177 loc) · 8.68 KB
/
README-DO-UPDATES.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
==============================================================================
2020.04.26 * SETHOST: Prevent setting some restricted/reserved hostnames
------------------------------------------------------------------------------
If you have an existing installation, you can upgrade with the following steps:
gnuworld@ubuntu:~$ cd gnuworld-enhanced
gnuworld@ubuntu:~/gnuworld-enhanced$ git pull
gnuworld@ubuntu:~/gnuworld-enhanced$ make; make install
- Add the new restricted/reserved hostnames section from cservice.example.conf to your cservice.conf
... restart gnuworld ...
- If you just edited/updated the restricted hostnames in cservice.conf just:
... restart gnuworld ...
Done.
- If you don't want to allow admins/opers to set restricted/reserved hosts, edit
mod.cservice/cservice_config.h
#undef ADMINS_USE_RESTRICTED_SETHOSTS
gnuworld@ubuntu:~/gnuworld-enhanced$ make; make install
... restart gnuworld ...
Done.
==============================================================================
2016.02.18 Added halfop support: mod.cservice HALFOPCommand and HALFDEOPCommand
------------------------------------------------------------------------------
If you have an existing installation, you can upgrade with the following steps:
gnuworld@ubuntu:~$ cd gnuworld-enhanced
gnuworld@ubuntu:~/gnuworld-enhanced$ make clean; make distclean
- Reconfigure again:
gnuworld@ubuntu:~/gnuworld-enhanced$ ./configure ......
gnuworld@ubuntu:~/gnuworld-enhanced$ make; make install
... restart gnuworld ...
Done.
Note: If doesn't works, follow the steps like in SCANCommand, saving libltdl, and doing the autoreconf
============================================================================
2016.02.04 Recognizing and handling Nefarious2's cloaked IP and cloaked Host
----------------------------------------------------------------------------
If you have an existing installation, you can upgrade with the following steps:
gnuworld@ubuntu:~$ cd gnuworld-enhanced
gnuworld@ubuntu:~/gnuworld-enhanced$ git pull
gnuworld@ubuntu:~/gnuworld-enhanced$ make; make install
... restart gnuworld ...
Done.
Also don't forget to set "HOST_HIDING_STYLE" > 1 in Nefarious2's ircd.conf if you intend to see cloaked IPs/hosts
============================================================================
2016.01.08 Prevent users to set 'exotic' hostnames, like with colors, etc.
----------------------------------------------------------------------------
If you have an existing installation, you can upgrade with the following steps:
gnuworld@ubuntu:~$ cd gnuworld-enhanced
gnuworld@ubuntu:~/gnuworld-enhanced$ git pull
gnuworld@ubuntu:~/gnuworld-enhanced$ make; make install
... restart gnuworld ...
Done.
============================================================================
2016.01.07 Added mod.cservice SCANCommand
First puropse: find owner user of a nickname
----------------------------------------------------------------------------
gnuworld@ubuntu:~$ cd gnuworld-enhanced
gnuworld@ubuntu:~/gnuworld-enhanced$ git pull
- Check and note down your current configure line:
gnuworld@ubuntu:~/gnuworld-enhanced$ vim config.log
In my case:
./configure --with-extra-includes=/usr/local/include --with-extra-includes=/usr/include/postgresql/ --with-pgsql-home=/usr/local/pgsql/ --enable-modules=cservice,ccontrol
- Do a full clean:
gnuworld@ubuntu:~/gnuworld-enhanced$ make clean; make distclean
- Save libltdl:
gnuworld@ubuntu:~/gnuworld-enhanced$ cp -rf libltdl/ libltdl-save
- Do a full autoreconf:
gnuworld@ubuntu:~/gnuworld-enhanced$ autoreconf -Wall -i
- Delete libltdl/, rename back libltdl-save:
gnuworld@ubuntu:~/gnuworld-enhanced$ rm -rf libltdl; mv libltdl-save libltdl
- Configure again:
gnuworld@ubuntu:~/gnuworld-enhanced$ ./configure --with-extra-includes=/usr/local/include --with-extra-includes=/usr/include/postgresql/ --with-pgsql-home=/usr/local/pgsql/ --enable-modules=cservice,ccontrol
gnuworld@ubuntu:~/gnuworld-enhanced$ make; make install
... restart gnuworld ...
Done.
============================================================================
2016.01.07 mod.cservice NEWPASS: Admins can set target users a new password
----------------------------------------------------------------------------
- The usual update procedure:
gnuworld@ubuntu:~$ cd gnuworld-enhanced
gnuworld@ubuntu:~/gnuworld-enhanced$ git pull
gnuworld@ubuntu:~/gnuworld-enhanced$ make; make install
... restart gnuworld ...
Done.
============================================================================
2016.01.06 Nick protection through mod.cservice (nickreg/nickserv function)
----------------------------------------------------------------------------
Warning! You need to patch Nefarious2 to handle correctly svsnicks!
- Edit nefarious2/ircd/s_user.c
- Find set_nick_name function
On the section where writes:
/*
* Refuse nick change if the last nick change was less
* then 30 seconds ago. This is intended to get rid of
... ...
There is:
if (CurrentTime < cli_nextnick(cptr))
{
cli_nextnick(cptr) += 2;
send_reply(cptr, ERR_NICKTOOFAST, parv[1],
cli_nextnick(cptr) - CurrentTime);
/* Send error message */
sendcmdto_one(cptr, CMD_NICK, cptr, "%s", cli_name(cptr));
/* bounce NICK to user */
return 0; /* ignore nick change! */
}
else {
/* Limit total to 1 change per NICK_DELAY seconds: */
cli_nextnick(cptr) += NICK_DELAY;
/* However allow _maximal_ 1 extra consecutive nick change: */
if (cli_nextnick(cptr) < CurrentTime)
cli_nextnick(cptr) = CurrentTime;
}
Change it to:
if (!svsnick)
{
if (CurrentTime < cli_nextnick(cptr))
{
cli_nextnick(cptr) += 2;
send_reply(cptr, ERR_NICKTOOFAST, parv[1],
cli_nextnick(cptr) - CurrentTime);
/* Send error message */
sendcmdto_one(cptr, CMD_NICK, cptr, "%s", cli_name(cptr));
/* bounce NICK to user */
return 0; /* ignore nick change! */
}
else {
/* Limit total to 1 change per NICK_DELAY seconds: */
cli_nextnick(cptr) += NICK_DELAY;
/* However allow _maximal_ 1 extra consecutive nick change: */
if (cli_nextnick(cptr) < CurrentTime)
cli_nextnick(cptr) = CurrentTime;
}
}
- Save the file
- Do a make; make install again
- Restart ircd!
Now updating gnuworld:
- Update the database 'users' table structure:
gnuworld@ubuntu:~$ cd gnuworld-enhanced
gnuworld@ubuntu:~/gnuworld-enhanced$ git pull
gnuworld@ubuntu:~$ cd gnuworld-enhanced/doc
gnuworld@ubuntu:~/gnuworld-enhanced/doc$ /usr/local/pgsql/bin/psql cservice < update_cservice_users_nickname.sql
gnuworld@ubuntu:~/gnuworld-enhanced/doc$ cd ..
gnuworld@ubuntu:~/gnuworld-enhanced$ make; make install
... restart gnuworld ...
Done.
============================================================================
2016.01.06 New feature: Set welcome notice-message on channel joins through X
----------------------------------------------------------------------------
If you have an existing installation, you can upgrade with the following steps:
- Update the database 'channels' table structure:
gnuworld@ubuntu:~$ cd gnuworld-enhanced
gnuworld@ubuntu:~/gnuworld-enhanced$ git pull
gnuworld@ubuntu:~/gnuworld-enhanced$ cd doc
gnuworld@ubuntu:~/gnuworld-enhanced/doc$ /usr/local/pgsql/bin/psql cservice < update_cservice_channel_welcome.sql
gnuworld@ubuntu:~/gnuworld-enhanced/doc$ cd ..
gnuworld@ubuntu:~/gnuworld-enhanced$ make; make install
... restart gnuworld ...
Done. You can see the welcome message on any channel join.
============================================================================
2015.08.06 New feature: Set (fake)hostname for users
----------------------------------------------------------------------------
Warning! This feature requires Nefarious2 with it's Fake host support.
If you have an existing installation, you can upgrade with the following steps:
- Update the database 'users' table structure:
gnuworld@ubuntu:~/gnuworld-enhanced$ git pull
gnuworld@ubuntu:~$ cd gnuworld-enhanced/doc
gnuworld@ubuntu:~/gnuworld-enhanced/doc$ /usr/local/pgsql/bin/psql cservice < update_cservice_users_hostname.sql
- This update probably requires a full reconfigure, so note down your configure line from
~/gnuworld-enhanced/config.log
after that, do a full reconfigure and remake
gnuworld@ubuntu:~/gnuworld-enhanced$ make clean; make distclean
gnuworld@ubuntu:~/gnuworld-enhanced$ ./configure ....
gnuworld@ubuntu:~/gnuworld-enhanced$ make; make install
... restart gnuworld ...
The command syntax for setting a hostname for a username:
/msg X set hostname <anyhost.youwant.com>
To clear your hostname use:
/msg X set hostname off