Debian Codegraph @

src/bnetd/topic.cpp

raw symbols SCIP
1 /*
2 * Copyright (C) 2015 xboi209
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18 #include "common/setup_before.h"cxx . . $ `<file>/src/common/setup_before.h`/
19 #include "topic.h"cxx . . $ `<file>/src/bnetd/topic.h`/
20
21 #include <fstream>
22 #include <memory>
23 #include <new>
24 #include <regex>
25 #include <string>
26 #include <utility>
27
28 #include "compat/strcasecmp.h"cxx . . $ `<file>/src/compat/strcasecmp.h`/
29
30 #include "common/eventlog.h"cxx . . $ `<file>/src/common/eventlog.h`/
31 #include "common/field_sizes.h"cxx . . $ `<file>/src/common/field_sizes.h`/
32
33 #include "message.h"cxx . . $ `<file>/src/bnetd/message.h`/
34 #include "prefs.h"cxx . . $ `<file>/src/bnetd/prefs.h`/
35
36 #include "common/setup_after.h"cxx . . $ `<file>/src/common/setup_after.h`/
37
38 namespace pvpgncxx . . $ pvpgn/
39 {
40
41 namespace bnetdcxx . . $ pvpgn/bnetd/
42 {
43 stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::shared_ptrcxx . . $ std/shared_ptr#<class_topiccxx . . $ pvpgn/bnetd/class_topic#::t_topiccxx . . $ pvpgn/bnetd/class_topic#t_topic#>> class_topiccxx . . $ pvpgn/bnetd/class_topic#::class_topiclistcxx . . $ pvpgn/bnetd/class_topic#class_topiclist#::Headcxx . . $ pvpgn/bnetd/class_topic#class_topiclist#Head.;
44
45 bool class_topiccxx . . $ pvpgn/bnetd/class_topic#::class_topiclistcxx . . $ pvpgn/bnetd/class_topic#class_topiclist#::IsHeadLoadedcxx . . $ pvpgn/bnetd/class_topic#class_topiclist#IsHeadLoaded. = false;
46
47 class_topiccxx . . $ pvpgn/bnetd/class_topic#::class_topiccxx . . $ pvpgn/bnetd/class_topic#class_topic(49f6e7a06ebc5aa8).()
48 {
49 //Already loaded, do not load again
50 if (this->topiclistcxx . . $ pvpgn/bnetd/class_topic#topiclist..IsHeadLoadedcxx . . $ pvpgn/bnetd/class_topic#class_topiclist#IsHeadLoaded. == true)
51 return;
52
53 stdcxx . . $ std/::ifstreamcxx . . $ std/ifstream# topicfile_streamcxx . . $ std/basic_ifstream#basic_ifstream(b8cd37071ce335df).(prefs_get_topicfilecxx . . $ pvpgn/bnetd/prefs_get_topicfile(33a1f659e94feb42).());
54 if (!cxx . . $ std/basic_ios#`operator!`(50ce9a9e25b4a850).topicfile_stream)
55 {
56 eventlogcxx . . $ pvpgn/eventlog(f1d8dd72586f1e25).(eventlog_level_errorcxx . . $ pvpgn/eventlog_level_error., __FUNCTION__, "couldn't open topic file");
57 return;
58 }
59
60 stdcxx . . $ std/::stringcxx . . $ std/string# strLinecxx . . $ std/__cxx11/basic_string#basic_string(925dcc5e17f50391).;
61 stdcxx . . $ std/::smatchcxx . . $ std/__cxx11/smatch# matchcxx . . $ std/__cxx11/match_results#match_results(49f6e7a06ebc5aa8).;
62 const stdcxx . . $ std/::regexcxx . . $ std/__cxx11/regex# rgxcxx . . $ std/__cxx11/basic_regex#basic_regex(d1adbc785ae219ab).("(.*)\t(.*)"); // tab character separates the channel name and topic
63
64 //loop through each line in topic file
65 while (stdcxx . . $ std/::getlinecxx . . $ std/getline(4ec722ed0b69c2ab).(topicfile_stream, strLine))
66 {
67 //skip empty lines
68 if (strLine.emptycxx . . $ std/__cxx11/basic_string#empty(3482b152b9333168).() == true)
69 continue;
70
71 if (!stdcxx . . $ std/::regex_searchcxx . . $ std/regex_search(428e6b8e81328b43).(strLine, match, rgx))
72 {
73 eventlogcxx . . $ pvpgn/eventlog(f1d8dd72586f1e25).(eventlog_level_errorcxx . . $ pvpgn/eventlog_level_error., __FUNCTION__, "Invalid line in topic file ({})", strLine.c_strcxx . . $ std/__cxx11/basic_string#c_str(8e614c7de0b1573e).());
74 continue;
75 }
76
77 //check if current line in file already exists in Head
78 if (this->topiclistcxx . . $ pvpgn/bnetd/class_topic#topiclist..getcxx . . $ pvpgn/bnetd/class_topic#class_topiclist#get(ef639fc4e59e75d0).(match[cxx . . $ std/__cxx11/match_results#`operator[]`(f2afb01e2bf6aaf8).1].strcxx . . $ std/__cxx11/sub_match#str(e8abff648787bce1).()) !=cxx . . $ std/`operator!=`(731b30642be68d33). nullptr)
79 {
80 eventlogcxx . . $ pvpgn/eventlog(f1d8dd72586f1e25).(eventlog_level_errorcxx . . $ pvpgn/eventlog_level_error., __FUNCTION__, "Duplicate line for channel {} in topic file", match[cxx . . $ std/__cxx11/match_results#`operator[]`(f2afb01e2bf6aaf8).1].strcxx . . $ std/__cxx11/sub_match#str(e8abff648787bce1).().c_strcxx . . $ std/__cxx11/basic_string#c_str(8e614c7de0b1573e).());
81 continue;
82 }
83
84 //save current line to Head
85 this->topiclistcxx . . $ pvpgn/bnetd/class_topic#topiclist..addcxx . . $ pvpgn/bnetd/class_topic#class_topiclist#add(4fdcace1b5639954).(match[cxx . . $ std/__cxx11/match_results#`operator[]`(f2afb01e2bf6aaf8).1].strcxx . . $ std/__cxx11/sub_match#str(e8abff648787bce1).(), match[cxx . . $ std/__cxx11/match_results#`operator[]`(f2afb01e2bf6aaf8).2].strcxx . . $ std/__cxx11/sub_match#str(e8abff648787bce1).(), true);
86 }
87
88 this->topiclistcxx . . $ pvpgn/bnetd/class_topic#topiclist..IsHeadLoadedcxx . . $ pvpgn/bnetd/class_topic#class_topiclist#IsHeadLoaded. = true;
89 }
90
91 //Get channel_name's topic string
92 stdcxx . . $ std/::stringcxx . . $ std/string# class_topiccxx . . $ pvpgn/bnetd/class_topic#::getcxx . . $ pvpgn/bnetd/class_topic#get(265576c0e07c2ac8).(const stdcxx . . $ std/::stringcxx . . $ std/string# channel_name)
93 {
94 if ((channel_name.sizecxx . . $ std/__cxx11/basic_string#size(6f8bd5c0ea8fb29a).() + 1) > MAX_CHANNELNAME_LENcxx . . $ MAX_CHANNELNAME_LEN. || channel_name.emptycxx . . $ std/__cxx11/basic_string#empty(3482b152b9333168).() == true)
95 {
96 eventlogcxx . . $ pvpgn/eventlog(f1d8dd72586f1e25).(eventlog_level_errorcxx . . $ pvpgn/eventlog_level_error., __FUNCTION__, "got invalid channel name length");
97 return stdcxx . . $ std/__cxx11/basic_string#basic_string(925dcc5e17f50391).::stringcxx . . $ std/string#();
98 }
99
100 auto topic = this->topiclistcxx . . $ pvpgn/bnetd/class_topic#topiclist..getcxx . . $ pvpgn/bnetd/class_topic#class_topiclist#get(ef639fc4e59e75d0).(channel_namecxx . . $ std/__cxx11/basic_string#basic_string(a47f53d4115f6ce5).);
101 if (topic ==cxx . . $ std/`operator==`(731b30642be68d33). nullptr)
102 return stdcxx . . $ std/__cxx11/basic_string#basic_string(925dcc5e17f50391).::stringcxx . . $ std/string#();
103
104 return topiccxx . . $ std/__cxx11/basic_string#basic_string(a47f53d4115f6ce5).->cxx . . $ std/__shared_ptr_access#`operator->`(34d6acfd341ba7ab).topicstrcxx . . $ pvpgn/bnetd/class_topic#t_topic#topicstr.;
105 }
106
107 //Sets channel_name's topic
108 bool class_topiccxx . . $ pvpgn/bnetd/class_topic#::setcxx . . $ pvpgn/bnetd/class_topic#set(68710a89f2bd51b).(const stdcxx . . $ std/::stringcxx . . $ std/string# channel_name, const stdcxx . . $ std/::stringcxx . . $ std/string# topic_text, bool do_save)
109 {
110 if ((channel_name.sizecxx . . $ std/__cxx11/basic_string#size(6f8bd5c0ea8fb29a).() + 1) > MAX_CHANNELNAME_LENcxx . . $ MAX_CHANNELNAME_LEN. || channel_name.emptycxx . . $ std/__cxx11/basic_string#empty(3482b152b9333168).() == true)
111 {
112 eventlogcxx . . $ pvpgn/eventlog(f1d8dd72586f1e25).(eventlog_level_errorcxx . . $ pvpgn/eventlog_level_error., __FUNCTION__, "got invalid channel name length");
113 return false;
114 }
115
116 if ((topic_text.sizecxx . . $ std/__cxx11/basic_string#size(6f8bd5c0ea8fb29a).() + 1) > MAX_TOPIC_LENcxx . . $ MAX_TOPIC_LEN. || topic_text.emptycxx . . $ std/__cxx11/basic_string#empty(3482b152b9333168).() == true)
117 {
118 eventlogcxx . . $ pvpgn/eventlog(f1d8dd72586f1e25).(eventlog_level_errorcxx . . $ pvpgn/eventlog_level_error., __FUNCTION__, "got invalid topic length");
119 return false;
120 }
121
122 auto topic = this->topiclistcxx . . $ pvpgn/bnetd/class_topic#topiclist..getcxx . . $ pvpgn/bnetd/class_topic#class_topiclist#get(ef639fc4e59e75d0).(channel_namecxx . . $ std/__cxx11/basic_string#basic_string(a47f53d4115f6ce5).);
123
124 if (topic !=cxx . . $ std/`operator!=`(731b30642be68d33). nullptr)
125 {
126 eventlogcxx . . $ pvpgn/eventlog(f1d8dd72586f1e25).(eventlog_level_tracecxx . . $ pvpgn/eventlog_level_trace., __FUNCTION__, "Setting <{}>'s topic to <{}>", channel_name.c_strcxx . . $ std/__cxx11/basic_string#c_str(8e614c7de0b1573e).(), topic_text.c_strcxx . . $ std/__cxx11/basic_string#c_str(8e614c7de0b1573e).());
127 topic->cxx . . $ std/__shared_ptr_access#`operator->`(34d6acfd341ba7ab).topicstrcxx . . $ pvpgn/bnetd/class_topic#t_topic#topicstr. =cxx . . $ std/__cxx11/basic_string#`operator=`(c0b47be1fddc0e75). topic_text;
128 }
129 else
130 {
131 eventlogcxx . . $ pvpgn/eventlog(f1d8dd72586f1e25).(eventlog_level_tracecxx . . $ pvpgn/eventlog_level_trace., __FUNCTION__, "Adding <{}:{}> to topiclist", channel_name.c_strcxx . . $ std/__cxx11/basic_string#c_str(8e614c7de0b1573e).(), topic_text.c_strcxx . . $ std/__cxx11/basic_string#c_str(8e614c7de0b1573e).());
132 this->topiclistcxx . . $ pvpgn/bnetd/class_topic#topiclist..addcxx . . $ pvpgn/bnetd/class_topic#class_topiclist#add(4fdcace1b5639954).(channel_namecxx . . $ std/__cxx11/basic_string#basic_string(a47f53d4115f6ce5)., topic_textcxx . . $ std/__cxx11/basic_string#basic_string(a47f53d4115f6ce5)., do_save);
133 }
134
135 if (do_save == true)
136 {
137 if (this->topiclistcxx . . $ pvpgn/bnetd/class_topic#topiclist..savecxx . . $ pvpgn/bnetd/class_topic#class_topiclist#save(c9857a73d68e59ba).() == false)
138 {
139 eventlogcxx . . $ pvpgn/eventlog(f1d8dd72586f1e25).(eventlog_level_errorcxx . . $ pvpgn/eventlog_level_error., __FUNCTION__, "error saving topic list");
140 return false;
141 }
142 }
143
144 return true;
145 }
146
147 // Displays channel_name's topic to connection c
148 bool class_topiccxx . . $ pvpgn/bnetd/class_topic#::displaycxx . . $ pvpgn/bnetd/class_topic#display(4ecd64a16013f99d).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, const stdcxx . . $ std/::stringcxx . . $ std/string# channel_name)
149 {
150 if ((channel_name.sizecxx . . $ std/__cxx11/basic_string#size(6f8bd5c0ea8fb29a).() + 1) > MAX_CHANNELNAME_LENcxx . . $ MAX_CHANNELNAME_LEN. || channel_name.emptycxx . . $ std/__cxx11/basic_string#empty(3482b152b9333168).() == true)
151 {
152 eventlogcxx . . $ pvpgn/eventlog(f1d8dd72586f1e25).(eventlog_level_errorcxx . . $ pvpgn/eventlog_level_error., __FUNCTION__, "got invalid channel name length");
153 return false;
154 }
155
156 auto topic = this->topiclistcxx . . $ pvpgn/bnetd/class_topic#topiclist..getcxx . . $ pvpgn/bnetd/class_topic#class_topiclist#get(ef639fc4e59e75d0).(channel_namecxx . . $ std/__cxx11/basic_string#basic_string(a47f53d4115f6ce5).);
157 if (topic ==cxx . . $ std/`operator==`(731b30642be68d33). nullptr)
158 return false;
159
160 auto topicstr = topiccxx . . $ std/__cxx11/basic_string#basic_string(a47f53d4115f6ce5).->cxx . . $ std/__shared_ptr_access#`operator->`(34d6acfd341ba7ab).topicstrcxx . . $ pvpgn/bnetd/class_topic#t_topic#topicstr.;
161
162 if (topicstr.emptycxx . . $ std/__cxx11/basic_string#empty(3482b152b9333168).())
163 {
164 eventlogcxx . . $ pvpgn/eventlog(f1d8dd72586f1e25).(eventlog_level_errorcxx . . $ pvpgn/eventlog_level_error., __FUNCTION__, "topic is empty");
165 return false;
166 }
167
168 //send parts of topic string as separate message if there's a newline character
169 stdcxx . . $ std/::regexcxx . . $ std/__cxx11/regex# rgxcxx . . $ std/__cxx11/basic_regex#basic_regex(d1adbc785ae219ab).("\\\\n+");
170 stdcxx . . $ std/::sregex_token_iteratorcxx . . $ std/__cxx11/sregex_token_iterator# itercxx . . $ std/__cxx11/regex_token_iterator#regex_token_iterator(a84d483644119e2).(topicstrcxx . . $ __gnu_cxx/__normal_iterator#__normal_iterator(459a7e7b9fbe7640)..begincxx . . $ std/__cxx11/basic_string#begin(417acd00ce8503f4).(), topicstrcxx . . $ __gnu_cxx/__normal_iterator#__normal_iterator(459a7e7b9fbe7640)..endcxx . . $ std/__cxx11/basic_string#end(417acd00ce8503f4).(), rgx, -1), endcxx . . $ std/__cxx11/regex_token_iterator#regex_token_iterator(49f6e7a06ebc5aa8).;
171 for (bool first = true; iter !=cxx . . $ std/__cxx11/regex_token_iterator#`operator!=`(6f604ca74a364372). end; ++cxx . . $ std/__cxx11/regex_token_iterator#operator++(b37146465a34d4fa).iter)
172 {
173 stdcxx . . $ std/::stringcxx . . $ std/string# msg(iter->cxx . . $ std/__cxx11/regex_token_iterator#`operator->`(de38e4938788c09c).strcxx . . $ std/__cxx11/sub_match#str(e8abff648787bce1).());
174 if (first == true)
175 {
176 msg.insertcxx . . $ std/__cxx11/basic_string#insert(ef4c8b4193105769).(0, topic->cxx . . $ std/__shared_ptr_access#`operator->`(34d6acfd341ba7ab).channel_namecxx . . $ pvpgn/bnetd/class_topic#t_topic#channel_name. +cxx . . $ std/operator+(40fc1db9226233c6). " topic: ");
177 first = false;
178 }
179 message_send_textcxx . . $ pvpgn/bnetd/message_send_text(6288036871507e5c).(c, message_type_infocxx . . $ pvpgn/bnetd/message_type_info., c, msgcxx . . $ std/__cxx11/basic_string#basic_string(a47f53d4115f6ce5).);
180 }
181
182 return true;
183 }
184
185
186 //Get t_topic pointer of channel_name
187 stdcxx . . $ std/::shared_ptrcxx . . $ std/shared_ptr#<class_topiccxx . . $ pvpgn/bnetd/class_topic#::t_topiccxx . . $ pvpgn/bnetd/class_topic#t_topic#> class_topiccxx . . $ pvpgn/bnetd/class_topic#::class_topiclistcxx . . $ pvpgn/bnetd/class_topic#class_topiclist#::getcxx . . $ pvpgn/bnetd/class_topic#class_topiclist#get(ef639fc4e59e75d0).(const stdcxx . . $ std/::stringcxx . . $ std/string# channel_name)
188 {
189 for (auto topic : this->Headcxx . . $ pvpgn/bnetd/class_topic#class_topiclist#Head.)
190 {
191 if (strcasecmp(channel_name.c_strcxx . . $ std/__cxx11/basic_string#c_str(8e614c7de0b1573e).(), topic->cxx . . $ std/__shared_ptr_access#`operator->`(34d6acfd341ba7ab).channel_namecxx . . $ pvpgn/bnetd/class_topic#t_topic#channel_name..c_strcxx . . $ std/__cxx11/basic_string#c_str(8e614c7de0b1573e).()) == 0)
192 return topiccxx . . $ std/shared_ptr#shared_ptr(e98954a1f10335bf).;
193 }
194 eventlogcxx . . $ pvpgn/eventlog(f1d8dd72586f1e25).(eventlog_level_debugcxx . . $ pvpgn/eventlog_level_debug., __FUNCTION__, "returning nullptr");
195
196 return nullptrcxx . . $ std/shared_ptr#shared_ptr(6d988fd07f070dfc).;
197 }
198
199 //Saves data from Head vector to topic file
200 bool class_topiccxx . . $ pvpgn/bnetd/class_topic#::class_topiclistcxx . . $ pvpgn/bnetd/class_topic#class_topiclist#::savecxx . . $ pvpgn/bnetd/class_topic#class_topiclist#save(c9857a73d68e59ba).()
201 {
202 stdcxx . . $ std/::fstreamcxx . . $ std/fstream# topicfile_streamcxx . . $ std/basic_fstream#basic_fstream(b8cd37071ce335df).(prefs_get_topicfilecxx . . $ pvpgn/bnetd/prefs_get_topicfile(33a1f659e94feb42).(), stdcxx . . $ std/::ofstreamcxx . . $ std/ofstream#::appcxx . . $ std/ios_base#app.);
203 if (!cxx . . $ std/basic_ios#`operator!`(50ce9a9e25b4a850).topicfile_stream)
204 {
205 eventlogcxx . . $ pvpgn/eventlog(f1d8dd72586f1e25).(eventlog_level_errorcxx . . $ pvpgn/eventlog_level_error., __FUNCTION__, "couldn't open topic file");
206 return false;
207 }
208
209 stdcxx . . $ std/::stringcxx . . $ std/string# strLinecxx . . $ std/__cxx11/basic_string#basic_string(925dcc5e17f50391).;
210 stdcxx . . $ std/::smatchcxx . . $ std/__cxx11/smatch# matchcxx . . $ std/__cxx11/match_results#match_results(49f6e7a06ebc5aa8).;
211 const stdcxx . . $ std/::regexcxx . . $ std/__cxx11/regex# rgxcxx . . $ std/__cxx11/basic_regex#basic_regex(d1adbc785ae219ab).("(.*)\t(.*)"); // tab character separates the channel name and topic
212
213 //Check if data in Head vector already exists in topic file
214 while (stdcxx . . $ std/::getlinecxx . . $ std/getline(4ec722ed0b69c2ab).(topicfile_stream, strLine))
215 {
216 if (!stdcxx . . $ std/::regex_searchcxx . . $ std/regex_search(428e6b8e81328b43).(strLine, match, rgx))
217 {
218 eventlogcxx . . $ pvpgn/eventlog(f1d8dd72586f1e25).(eventlog_level_errorcxx . . $ pvpgn/eventlog_level_error., __FUNCTION__, "Invalid line in topic file ({})", strLine.c_strcxx . . $ std/__cxx11/basic_string#c_str(8e614c7de0b1573e).());
219 continue;
220 }
221
222 for (auto topic : this->Headcxx . . $ pvpgn/bnetd/class_topic#class_topiclist#Head.)
223 {
224 if (topic->cxx . . $ std/__shared_ptr_access#`operator->`(34d6acfd341ba7ab).savecxx . . $ pvpgn/bnetd/class_topic#t_topic#save. == true)
225 {
226 if (match[cxx . . $ std/__cxx11/match_results#`operator[]`(f2afb01e2bf6aaf8).1].strcxx . . $ std/__cxx11/sub_match#str(e8abff648787bce1).() ==cxx . . $ std/`operator==`(5ea818b58063a774). topic->cxx . . $ std/__shared_ptr_access#`operator->`(34d6acfd341ba7ab).channel_namecxx . . $ pvpgn/bnetd/class_topic#t_topic#channel_name.)
227 {
228 break;
229 }
230 else
231 {
232 topicfile_stream <<cxx . . $ std/`operator<<`(88df5bef833f7f83). topic->cxx . . $ std/__shared_ptr_access#`operator->`(34d6acfd341ba7ab).channel_namecxx . . $ pvpgn/bnetd/class_topic#t_topic#channel_name. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\t" <<cxx . . $ std/`operator<<`(88df5bef833f7f83). topic->cxx . . $ std/__shared_ptr_access#`operator->`(34d6acfd341ba7ab).topicstrcxx . . $ pvpgn/bnetd/class_topic#t_topic#topicstr. <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).;
233 break;
234 }
235 }
236 }
237 }
238 return true;
239 }
240
241 //Adds a new pointer to the Head vector
242 void class_topiccxx . . $ pvpgn/bnetd/class_topic#::class_topiclistcxx . . $ pvpgn/bnetd/class_topic#class_topiclist#::addcxx . . $ pvpgn/bnetd/class_topic#class_topiclist#add(4fdcace1b5639954).(stdcxx . . $ std/::stringcxx . . $ std/string# channel_name, stdcxx . . $ std/::stringcxx . . $ std/string# topic_text, bool do_save)
243 {
244 auto topic = stdcxx . . $ std/::make_sharedcxx . . $ std/make_shared(ffca0f3977536948).<class_topiccxx . . $ pvpgn/bnetd/class_topic#::t_topiccxx . . $ pvpgn/bnetd/class_topic#t_topic#>(class_topiccxx . . $ pvpgn/bnetd/class_topic#::t_topiccxx . . $ pvpgn/bnetd/class_topic#t_topic#{ channel_name, topic_text, do_save });
245 this->Headcxx . . $ pvpgn/bnetd/class_topic#class_topiclist#Head..push_backcxx . . $ std/vector#push_back(fe7a8a4d1eddb70).(stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(topic));
246 }
247
248 }
249
250 }