mirror of
https://github.com/vishalxl/nostr_console.git
synced 2025-07-19 00:32:24 +02:00
removed extra debug msg
This commit is contained in:
@ -298,8 +298,7 @@ class EventData {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int n = 4;
|
||||||
int n = 3;
|
|
||||||
String maxN(String v) => v.length > n? v.substring(0,n) : v.substring(0, v.length);
|
String maxN(String v) => v.length > n? v.substring(0,n) : v.substring(0, v.length);
|
||||||
void printInColor(String s, String commentColor) => stdout.supportsAnsiEscapes ?stdout.write("$commentColor$s$colorEndMarker"):stdout.write(s);
|
void printInColor(String s, String commentColor) => stdout.supportsAnsiEscapes ?stdout.write("$commentColor$s$colorEndMarker"):stdout.write(s);
|
||||||
|
|
||||||
|
@ -3,6 +3,8 @@
|
|||||||
String gCheckEventId = "a4479de655094679cdfb10f347521aa58f24717cdc5ddba89fb346453a8a99ed";
|
String gCheckEventId = "a4479de655094679cdfb10f347521aa58f24717cdc5ddba89fb346453a8a99ed";
|
||||||
|
|
||||||
|
|
||||||
|
String gRemoteAdminPubkey = "";
|
||||||
|
|
||||||
const int numWaitSeconds = 3000;
|
const int numWaitSeconds = 3000;
|
||||||
|
|
||||||
// global counters of total events read or processed
|
// global counters of total events read or processed
|
||||||
|
@ -178,6 +178,11 @@ class Tree {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// experimental
|
||||||
|
if( newEvent.eventData.pubkey == gRemoteAdminPubkey) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
// expand mentions ( and translate if flag is set)
|
// expand mentions ( and translate if flag is set)
|
||||||
newEvent.eventData.translateAndExpandMentions();
|
newEvent.eventData.translateAndExpandMentions();
|
||||||
|
|
||||||
@ -467,7 +472,7 @@ class Tree {
|
|||||||
if( room.name.length < channelId.length) {
|
if( room.name.length < channelId.length) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
print("room = ${room.name} channelId = $channelId");
|
if( gDebug > 0) print("room = ${room.name} channelId = $channelId");
|
||||||
if( room.name.substring(0, channelId.length) == channelId ) {
|
if( room.name.substring(0, channelId.length) == channelId ) {
|
||||||
printChannel(room);
|
printChannel(room);
|
||||||
return key;
|
return key;
|
||||||
|
Reference in New Issue
Block a user